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

Side by Side Diff: extensions/browser/api/power/power_api_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/power/power_api.h" 5 #include "extensions/browser/api/power/power_api.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/single_thread_task_runner.h"
14 #include "device/power_save_blocker/power_save_blocker.h" 15 #include "device/power_save_blocker/power_save_blocker.h"
15 #include "extensions/browser/api_test_utils.h" 16 #include "extensions/browser/api_test_utils.h"
16 #include "extensions/browser/api_unittest.h" 17 #include "extensions/browser/api_unittest.h"
17 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
18 #include "extensions/common/test_util.h" 19 #include "extensions/common/test_util.h"
19 20
20 namespace extensions { 21 namespace extensions {
21 22
22 namespace { 23 namespace {
23 24
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 EXPECT_EQ(NONE, manager_->PopFirstRequest()); 278 EXPECT_EQ(NONE, manager_->PopFirstRequest());
278 279
279 // Make the first extension block display-sleep again. 280 // Make the first extension block display-sleep again.
280 ASSERT_TRUE(CallFunction(REQUEST, kDisplayArgs, extension())); 281 ASSERT_TRUE(CallFunction(REQUEST, kDisplayArgs, extension()));
281 EXPECT_EQ(BLOCK_DISPLAY_SLEEP, manager_->PopFirstRequest()); 282 EXPECT_EQ(BLOCK_DISPLAY_SLEEP, manager_->PopFirstRequest());
282 EXPECT_EQ(UNBLOCK_APP_SUSPENSION, manager_->PopFirstRequest()); 283 EXPECT_EQ(UNBLOCK_APP_SUSPENSION, manager_->PopFirstRequest());
283 EXPECT_EQ(NONE, manager_->PopFirstRequest()); 284 EXPECT_EQ(NONE, manager_->PopFirstRequest());
284 } 285 }
285 286
286 } // namespace extensions 287 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/power/power_api.h ('k') | extensions/browser/updater/update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698