OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/startup_task_runner.h" | 5 #include "content/browser/startup_task_runner.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/single_thread_task_runner.h" |
14 #include "base/task_runner.h" | 15 #include "base/task_runner.h" |
15 | 16 |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 namespace { | 21 namespace { |
21 | 22 |
22 using base::Closure; | 23 using base::Closure; |
23 using testing::_; | 24 using testing::_; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 EXPECT_EQ(observer_calls, 1); | 305 EXPECT_EQ(observer_calls, 1); |
305 EXPECT_EQ(observer_result, 1); | 306 EXPECT_EQ(observer_result, 1); |
306 | 307 |
307 // Check that running synchronously now doesn't do anything | 308 // Check that running synchronously now doesn't do anything |
308 runner.RunAllTasksNow(); | 309 runner.RunAllTasksNow(); |
309 EXPECT_EQ(observer_calls, 1); | 310 EXPECT_EQ(observer_calls, 1); |
310 EXPECT_EQ(task_count, 1); | 311 EXPECT_EQ(task_count, 1); |
311 } | 312 } |
312 } // namespace | 313 } // namespace |
313 } // namespace content | 314 } // namespace content |
OLD | NEW |