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

Side by Side Diff: chrome/browser/extensions/background_app_browsertest.cc

Issue 687903003: Cleanup: Remove unneeded ui_test_utils.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros Created 6 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
OLDNEW
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 "chrome/browser/background/background_mode_manager.h" 5 #include "chrome/browser/background/background_mode_manager.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/extensions/extension_browsertest.h" 7 #include "chrome/browser/extensions/extension_browsertest.h"
8 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
9 #include "chrome/test/base/ui_test_utils.h"
10 9
11 class TestBackgroundModeManager : public BackgroundModeManager { 10 class TestBackgroundModeManager : public BackgroundModeManager {
12 public: 11 public:
13 TestBackgroundModeManager(CommandLine* command_line, 12 TestBackgroundModeManager(CommandLine* command_line,
14 ProfileInfoCache* profile_cache) 13 ProfileInfoCache* profile_cache)
15 : BackgroundModeManager(command_line, profile_cache), 14 : BackgroundModeManager(command_line, profile_cache),
16 showed_background_app_installed_notification_for_test_(false) {} 15 showed_background_app_installed_notification_for_test_(false) {}
17 16
18 ~TestBackgroundModeManager() override {} 17 ~TestBackgroundModeManager() override {}
19 18
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Set the test flag to not shown. 68 // Set the test flag to not shown.
70 manager->set_showed_background_app_installed_notification_for_test(false); 69 manager->set_showed_background_app_installed_notification_for_test(false);
71 70
72 // Reload our background extension 71 // Reload our background extension
73 ReloadExtension(extension->id()); 72 ReloadExtension(extension->id());
74 73
75 // Ensure that we did not see a "Background extension loaded" dialog. 74 // Ensure that we did not see a "Background extension loaded" dialog.
76 EXPECT_FALSE( 75 EXPECT_FALSE(
77 manager->showed_background_app_installed_notification_for_test()); 76 manager->showed_background_app_installed_notification_for_test());
78 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698