/*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#include "folly/Padded.h"
+#include <folly/Padded.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
class IntPaddedConstTest : public IntPaddedTestBase {
protected:
- void SetUp() {
+ void SetUp() override {
v_.resize(4);
n_ = 0;
for (int i = 0; i < 4; i++) {
- for (int j = 0; j < IntNode::kElementCount; ++j, ++n_) {
+ for (size_t j = 0; j < IntNode::kElementCount; ++j, ++n_) {
v_[i].data()[j] = n_;
}
}
k = 0;
for (int i = 0; i < 4; i++) {
- for (int j = 0; j < IntNode::kElementCount; ++j, ++k) {
+ for (size_t j = 0; j < IntNode::kElementCount; ++j, ++k) {
EXPECT_EQ(k, v_[i].data()[j]);
}
}
class StructPaddedConstTest : public StructPaddedTestBase {
protected:
- void SetUp() {
+ void SetUp() override {
v_.resize(4);
n_ = 0;
for (int i = 0; i < 4; i++) {
- for (int j = 0; j < PointNode::kElementCount; ++j, ++n_) {
+ for (size_t j = 0; j < PointNode::kElementCount; ++j, ++n_) {
auto& point = v_[i].data()[j];
point.x = n_;
point.y = n_ + 1;
EXPECT_EQ(42, a[i]);
}
}
-