OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Unit test for SyncChannel. | 5 // Unit test for SyncChannel. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/dynamic_annotations.h" | |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
14 #include "base/platform_thread.h" | 13 #include "base/platform_thread.h" |
15 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
17 #include "base/thread.h" | 17 #include "base/thread.h" |
18 #include "base/waitable_event.h" | 18 #include "base/waitable_event.h" |
19 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
20 #include "ipc/ipc_sync_channel.h" | 20 #include "ipc/ipc_sync_channel.h" |
21 #include "ipc/ipc_sync_message_filter.h" | 21 #include "ipc/ipc_sync_message_filter.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 | 24 |
25 #define MESSAGES_INTERNAL_FILE "ipc/ipc_sync_message_unittest.h" | 25 #define MESSAGES_INTERNAL_FILE "ipc/ipc_sync_message_unittest.h" |
26 #include "ipc/ipc_message_macros.h" | 26 #include "ipc/ipc_message_macros.h" |
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 | 1108 |
1109 } // namespace | 1109 } // namespace |
1110 | 1110 |
1111 // Tests basic synchronous call | 1111 // Tests basic synchronous call |
1112 TEST_F(IPCSyncChannelTest, SyncMessageFilter) { | 1112 TEST_F(IPCSyncChannelTest, SyncMessageFilter) { |
1113 std::vector<Worker*> workers; | 1113 std::vector<Worker*> workers; |
1114 workers.push_back(new SyncMessageFilterServer()); | 1114 workers.push_back(new SyncMessageFilterServer()); |
1115 workers.push_back(new SimpleClient()); | 1115 workers.push_back(new SimpleClient()); |
1116 RunTest(workers); | 1116 RunTest(workers); |
1117 } | 1117 } |
OLD | NEW |