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

Side by Side Diff: base/synchronization/cancellation_flag_unittest.cc

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Tests of CancellationFlag class. 5 // Tests of CancellationFlag class.
6 6
7 #include "base/synchronization/cancellation_flag.h" 7 #include "base/synchronization/cancellation_flag.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/synchronization/spin_wait.h" 12 #include "base/synchronization/spin_wait.h"
13 #include "base/time.h"
14 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/time/time.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
17 17
18 namespace base { 18 namespace base {
19 19
20 namespace { 20 namespace {
21 21
22 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------
23 // Define our test class. 23 // Define our test class.
24 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------
(...skipping 30 matching lines...) Expand all
55 ASSERT_TRUE(t.message_loop()); 55 ASSERT_TRUE(t.message_loop());
56 ASSERT_TRUE(t.IsRunning()); 56 ASSERT_TRUE(t.IsRunning());
57 57
58 CancellationFlag flag; 58 CancellationFlag flag;
59 t.message_loop()->PostTask(FROM_HERE, base::Bind(&CancelHelper, &flag)); 59 t.message_loop()->PostTask(FROM_HERE, base::Bind(&CancelHelper, &flag));
60 } 60 }
61 61
62 } // namespace 62 } // namespace
63 63
64 } // namespace base 64 } // namespace base
OLDNEW
« no previous file with comments | « base/profiler/tracked_time_unittest.cc ('k') | base/synchronization/condition_variable_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698