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

Side by Side Diff: chrome/browser/after_startup_task_utils_unittest.cc

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 Created 4 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
« no previous file with comments | « no previous file | chrome/browser/android/data_usage/external_data_use_observer_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/after_startup_task_utils.h" 5 #include "chrome/browser/after_startup_task_utils.h"
6 6
7 #include <memory> 7 #include <memory>
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/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "base/thread_task_runner_handle.h"
16 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/threading/thread_task_runner_handle.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using base::RunLoop; 21 using base::RunLoop;
22 using content::BrowserThread; 22 using content::BrowserThread;
23 using content::TestBrowserThreadBundle; 23 using content::TestBrowserThreadBundle;
24 24
25 namespace { 25 namespace {
26 26
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 base::Bind(&base::DoNothing)); 191 base::Bind(&base::DoNothing));
192 PostAfterStartupTaskFromDBThread(FROM_HERE, db_thread_, 192 PostAfterStartupTaskFromDBThread(FROM_HERE, db_thread_,
193 base::Bind(&base::DoNothing)); 193 base::Bind(&base::DoNothing));
194 EXPECT_EQ(2, db_thread_->posted_task_count()); 194 EXPECT_EQ(2, db_thread_->posted_task_count());
195 EXPECT_EQ(2, ui_thread_->posted_task_count()); 195 EXPECT_EQ(2, ui_thread_->posted_task_count());
196 FlushDBThread(); 196 FlushDBThread();
197 RunLoop().RunUntilIdle(); 197 RunLoop().RunUntilIdle();
198 EXPECT_EQ(2, db_thread_->ran_task_count()); 198 EXPECT_EQ(2, db_thread_->ran_task_count());
199 EXPECT_EQ(2, ui_thread_->ran_task_count()); 199 EXPECT_EQ(2, ui_thread_->ran_task_count());
200 } 200 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/data_usage/external_data_use_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698