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

Side by Side Diff: chrome/common/ipc_sync_channel_unittest.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/common/l10n_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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/stl_util-inl.h"
14 #include "base/string_util.h" 15 #include "base/string_util.h"
15 #include "base/thread.h" 16 #include "base/thread.h"
16 #include "base/waitable_event.h" 17 #include "base/waitable_event.h"
17 #include "chrome/common/ipc_message.h" 18 #include "chrome/common/ipc_message.h"
18 #include "chrome/common/ipc_sync_channel.h" 19 #include "chrome/common/ipc_sync_channel.h"
19 #include "chrome/common/stl_util-inl.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 22
23 #define MESSAGES_INTERNAL_FILE "chrome/common/ipc_sync_message_unittest.h" 23 #define MESSAGES_INTERNAL_FILE "chrome/common/ipc_sync_message_unittest.h"
24 #include "chrome/common/ipc_message_macros.h" 24 #include "chrome/common/ipc_message_macros.h"
25 25
26 using namespace IPC; 26 using namespace IPC;
27 using base::WaitableEvent; 27 using base::WaitableEvent;
28 28
29 namespace { 29 namespace {
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1000
1001 // Tests http://b/1474092 - that if after the done_event is set but before 1001 // Tests http://b/1474092 - that if after the done_event is set but before
1002 // OnObjectSignaled is called another message is sent out, then after its 1002 // OnObjectSignaled is called another message is sent out, then after its
1003 // reply comes back OnObjectSignaled will be called for the first message. 1003 // reply comes back OnObjectSignaled will be called for the first message.
1004 TEST_F(IPCSyncChannelTest, DoneEventRace) { 1004 TEST_F(IPCSyncChannelTest, DoneEventRace) {
1005 std::vector<Worker*> workers; 1005 std::vector<Worker*> workers;
1006 workers.push_back(new DoneEventRaceServer()); 1006 workers.push_back(new DoneEventRaceServer());
1007 workers.push_back(new SimpleClient()); 1007 workers.push_back(new SimpleClient());
1008 RunTest(workers); 1008 RunTest(workers);
1009 } 1009 }
OLDNEW
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/common/l10n_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698