OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/platform_thread.h" | 13 #include "base/platform_thread.h" |
14 #include "base/scoped_ptr.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" |
17 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 16 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
18 #include "base/thread.h" | 17 #include "base/thread.h" |
19 #include "base/waitable_event.h" | 18 #include "base/waitable_event.h" |
20 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
21 #include "ipc/ipc_sync_channel.h" | 20 #include "ipc/ipc_sync_channel.h" |
22 #include "ipc/ipc_sync_message_filter.h" | 21 #include "ipc/ipc_sync_message_filter.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
24 | 23 |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 | 1108 |
1110 } // namespace | 1109 } // namespace |
1111 | 1110 |
1112 // Tests basic synchronous call | 1111 // Tests basic synchronous call |
1113 TEST_F(IPCSyncChannelTest, SyncMessageFilter) { | 1112 TEST_F(IPCSyncChannelTest, SyncMessageFilter) { |
1114 std::vector<Worker*> workers; | 1113 std::vector<Worker*> workers; |
1115 workers.push_back(new SyncMessageFilterServer()); | 1114 workers.push_back(new SyncMessageFilterServer()); |
1116 workers.push_back(new SimpleClient()); | 1115 workers.push_back(new SimpleClient()); |
1117 RunTest(workers); | 1116 RunTest(workers); |
1118 } | 1117 } |
OLD | NEW |