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

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

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « base/sync_socket_unittest.cc ('k') | base/synchronization/condition_variable_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) 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/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/synchronization/spin_wait.h" 13 #include "base/synchronization/spin_wait.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/googletest/include/gtest/gtest.h"
17 #include "testing/platform_test.h" 17 #include "testing/platform_test.h"
18 18
19 namespace base { 19 namespace base {
20 20
21 namespace { 21 namespace {
22 22
23 //------------------------------------------------------------------------------ 23 //------------------------------------------------------------------------------
24 // Define our test class. 24 // Define our test class.
25 //------------------------------------------------------------------------------ 25 //------------------------------------------------------------------------------
26 26
(...skipping 29 matching lines...) Expand all
56 ASSERT_TRUE(t.message_loop()); 56 ASSERT_TRUE(t.message_loop());
57 ASSERT_TRUE(t.IsRunning()); 57 ASSERT_TRUE(t.IsRunning());
58 58
59 CancellationFlag flag; 59 CancellationFlag flag;
60 t.task_runner()->PostTask(FROM_HERE, base::Bind(&CancelHelper, &flag)); 60 t.task_runner()->PostTask(FROM_HERE, base::Bind(&CancelHelper, &flag));
61 } 61 }
62 62
63 } // namespace 63 } // namespace
64 64
65 } // namespace base 65 } // namespace base
OLDNEW
« no previous file with comments | « base/sync_socket_unittest.cc ('k') | base/synchronization/condition_variable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698