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

Side by Side Diff: mojo/public/cpp/bindings/tests/router_unittest.cc

Issue 328753003: Mojo: Plumb MojoCreateMessagePipeOptions through to the C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include "mojo/public/cpp/bindings/lib/message_builder.h" 8 #include "mojo/public/cpp/bindings/lib/message_builder.h"
9 #include "mojo/public/cpp/bindings/lib/message_queue.h" 9 #include "mojo/public/cpp/bindings/lib/message_queue.h"
10 #include "mojo/public/cpp/bindings/lib/router.h" 10 #include "mojo/public/cpp/bindings/lib/router.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 uint32_t name_; 102 uint32_t name_;
103 uint32_t request_id_; 103 uint32_t request_id_;
104 }; 104 };
105 105
106 class RouterTest : public testing::Test { 106 class RouterTest : public testing::Test {
107 public: 107 public:
108 RouterTest() { 108 RouterTest() {
109 } 109 }
110 110
111 virtual void SetUp() MOJO_OVERRIDE { 111 virtual void SetUp() MOJO_OVERRIDE {
112 CreateMessagePipe(&handle0_, &handle1_); 112 CreateMessagePipe(NULL, &handle0_, &handle1_);
113 } 113 }
114 114
115 virtual void TearDown() MOJO_OVERRIDE { 115 virtual void TearDown() MOJO_OVERRIDE {
116 } 116 }
117 117
118 void PumpMessages() { 118 void PumpMessages() {
119 loop_.RunUntilIdle(); 119 loop_.RunUntilIdle();
120 } 120 }
121 121
122 protected: 122 protected:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 EXPECT_TRUE(generator.has_responder()); 196 EXPECT_TRUE(generator.has_responder());
197 197
198 } 198 }
199 199
200 generator.Complete(); // This should end up doing nothing. 200 generator.Complete(); // This should end up doing nothing.
201 } 201 }
202 202
203 } // namespace 203 } // namespace
204 } // namespace test 204 } // namespace test
205 } // namespace mojo 205 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/handle_passing_unittest.cc ('k') | mojo/public/cpp/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698