OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 #include <utility> | 8 #include <utility> |
7 | 9 |
8 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
11 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
12 #include "base/time/time.h" | 15 #include "base/time/time.h" |
13 #include "mojo/message_pump/handle_watcher.h" | 16 #include "mojo/message_pump/handle_watcher.h" |
14 #include "mojo/message_pump/message_pump_mojo.h" | 17 #include "mojo/message_pump/message_pump_mojo.h" |
15 #include "mojo/public/cpp/test_support/test_support.h" | 18 #include "mojo/public/cpp/test_support/test_support.h" |
16 #include "mojo/public/cpp/test_support/test_utils.h" | 19 #include "mojo/public/cpp/test_support/test_utils.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
18 | 21 |
19 namespace mojo { | 22 namespace mojo { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 ASSERT_TRUE( | 198 ASSERT_TRUE( |
196 mojo::test::ReadTextMessage(pipe.handle0.get(), &received_message)); | 199 mojo::test::ReadTextMessage(pipe.handle0.get(), &received_message)); |
197 EXPECT_EQ(kMessage, received_message); | 200 EXPECT_EQ(kMessage, received_message); |
198 received_message.clear(); | 201 received_message.clear(); |
199 } | 202 } |
200 } | 203 } |
201 | 204 |
202 } // namespace test | 205 } // namespace test |
203 } // namespace common | 206 } // namespace common |
204 } // namespace mojo | 207 } // namespace mojo |
OLD | NEW |