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

Unified Diff: mojo/system/core_impl_unittest.cc

Issue 140503005: Mojo: foo_[0-9] -> foo[0-9]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | « mojo/system/core_impl.cc ('k') | mojo/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core_impl_unittest.cc
diff --git a/mojo/system/core_impl_unittest.cc b/mojo/system/core_impl_unittest.cc
index 522bf0734c1301cc329a6d678152bded45fdb475..8550bb013ebe799e9c72af0128b38c93de110101 100644
--- a/mojo/system/core_impl_unittest.cc
+++ b/mojo/system/core_impl_unittest.cc
@@ -251,11 +251,11 @@ TEST_F(CoreImplTest, InvalidArguments) {
MOJO_WRITE_MESSAGE_FLAG_NONE));
EXPECT_EQ(0u, info.GetWriteMessageCallCount());
- MockHandleInfo info_2;
- MojoHandle h_2 = CreateMockHandle(&info_2);
+ MockHandleInfo info2;
+ MojoHandle h2 = CreateMockHandle(&info2);
// This is "okay", but |MockDispatcher| doesn't implement it.
- handles[0] = h_2;
+ handles[0] = h2;
EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
core()->WriteMessage(h, NULL, 0, handles, 1,
MOJO_WRITE_MESSAGE_FLAG_NONE));
@@ -275,15 +275,15 @@ TEST_F(CoreImplTest, InvalidArguments) {
EXPECT_EQ(1u, info.GetWriteMessageCallCount());
// Can't send a handle twice in the same message.
- handles[1] = h_2;
+ handles[1] = h2;
EXPECT_EQ(MOJO_RESULT_BUSY,
core()->WriteMessage(h, NULL, 0, handles, 2,
MOJO_WRITE_MESSAGE_FLAG_NONE));
EXPECT_EQ(1u, info.GetWriteMessageCallCount());
- // Note: Since we never successfully sent anything with it, |h_2| should
+ // Note: Since we never successfully sent anything with it, |h2| should
// still be valid.
- EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_2));
+ EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h2));
EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
}
« no previous file with comments | « mojo/system/core_impl.cc ('k') | mojo/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698