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

Side by Side Diff: chrome/browser/net/chrome_net_log_unittest.cc

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
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 #include "chrome/browser/net/chrome_net_log.h" 5 #include "chrome/browser/net/chrome_net_log.h"
6 6
7 #include "base/waitable_event.h" 7 #include "base/synchronization/waitable_event.h"
8 #include "base/threading/simple_thread.h" 8 #include "base/threading/simple_thread.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace { 11 namespace {
12 12
13 const int kThreads = 10; 13 const int kThreads = 10;
14 const int kEvents = 100; 14 const int kEvents = 100;
15 15
16 class ChromeNetLogTestThread : public base::SimpleThread { 16 class ChromeNetLogTestThread : public base::SimpleThread {
17 public: 17 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 for (int i = 0; i < kThreads; ++i) 64 for (int i = 0; i < kThreads; ++i)
65 threads[i].ReallyStart(); 65 threads[i].ReallyStart();
66 66
67 for (int i = 0; i < kThreads; ++i) 67 for (int i = 0; i < kThreads; ++i)
68 threads[i].Join(); 68 threads[i].Join();
69 69
70 ChromeNetLog::EntryList entries; 70 ChromeNetLog::EntryList entries;
71 log.GetAllPassivelyCapturedEvents(&entries); 71 log.GetAllPassivelyCapturedEvents(&entries);
72 EXPECT_EQ(0u, entries.size()); 72 EXPECT_EQ(0u, entries.size());
73 } 73 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/indexed_db_key_utility_client.h ('k') | chrome/browser/net/cookie_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698