OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |