Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: mojo/public/tests/bindings_connector_unittest.cc

Issue 68973006: Mojo: Make bindings_connector_unittest.cc not depend on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tests/bindings_connector_unittest.cc
diff --git a/mojo/public/tests/bindings_connector_unittest.cc b/mojo/public/tests/bindings_connector_unittest.cc
index 9fcd0d5fbe52938467c1802b61a34b49330f4828..b742416f7ffda75bdca8ca5755272785081b3eb1 100644
--- a/mojo/public/tests/bindings_connector_unittest.cc
+++ b/mojo/public/tests/bindings_connector_unittest.cc
@@ -5,11 +5,10 @@
#include <stdlib.h>
#include <string.h>
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
#include "mojo/public/bindings/lib/bindings_support.h"
#include "mojo/public/bindings/lib/connector.h"
#include "mojo/public/bindings/lib/message_queue.h"
+#include "mojo/public/system/macros.h"
#include "mojo/public/tests/simple_bindings_support.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -45,11 +44,11 @@ class BindingsConnectorTest : public testing::Test {
handle1_(kInvalidHandle) {
}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() MOJO_OVERRIDE {
CreateMessagePipe(&handle0_, &handle1_);
}
- virtual void TearDown() OVERRIDE {
+ virtual void TearDown() MOJO_OVERRIDE {
Close(handle0_);
Close(handle1_);
}
@@ -133,7 +132,7 @@ TEST_F(BindingsConnectorTest, Basic_TwoMessages) {
const char* kText[] = { "hello", "world" };
- for (size_t i = 0; i < arraysize(kText); ++i) {
+ for (size_t i = 0; i < sizeof(kText) / sizeof(kText[0]); ++i) {
Message message;
AllocMessage(kText[i], &message);
@@ -145,7 +144,7 @@ TEST_F(BindingsConnectorTest, Basic_TwoMessages) {
PumpMessages();
- for (size_t i = 0; i < arraysize(kText); ++i) {
+ for (size_t i = 0; i < sizeof(kText) / sizeof(kText[0]); ++i) {
ASSERT_FALSE(accumulator.IsEmpty());
Message message_received;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698