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

Side by Side Diff: chrome/browser/task_manager/sampling/task_group_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/task_manager/sampling/task_group.h" 5 #include "chrome/browser/task_manager/sampling/task_group.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/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/sequenced_task_runner.h"
16 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
17 #include "base/test/gtest_util.h" 18 #include "base/test/gtest_util.h"
18 #include "chrome/browser/task_manager/sampling/shared_sampler.h" 19 #include "chrome/browser/task_manager/sampling/shared_sampler.h"
19 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "gpu/ipc/common/memory_stats.h" 22 #include "gpu/ipc/common/memory_stats.h"
22 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
23 24
24 namespace task_manager { 25 namespace task_manager {
25 26
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 ASSERT_FALSE(background_refresh_complete_); 160 ASSERT_FALSE(background_refresh_complete_);
160 run_loop_->Run(); 161 run_loop_->Run();
161 162
162 EXPECT_TRUE(background_refresh_complete_); 163 EXPECT_TRUE(background_refresh_complete_);
163 #endif // !defined(DISABLE_NACL) 164 #endif // !defined(DISABLE_NACL)
164 165
165 EXPECT_TRUE(task_group_.AreBackgroundCalculationsDone()); 166 EXPECT_TRUE(task_group_.AreBackgroundCalculationsDone());
166 } 167 }
167 168
168 } // namespace task_manager 169 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698