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

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

Issue 5089001: Cleanup: Include browser.h -> ui/browser.h [Part 3]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/ref_counted.h" 5 #include "base/ref_counted.h"
6 #include "chrome/browser/browser.h"
7 #include "chrome/browser/renderer_host/render_view_host.h"
8 #include "chrome/browser/extensions/autoupdate_interceptor.h" 6 #include "chrome/browser/extensions/autoupdate_interceptor.h"
9 #include "chrome/browser/extensions/extension_browsertest.h" 7 #include "chrome/browser/extensions/extension_browsertest.h"
10 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
11 #include "chrome/browser/extensions/extensions_service.h" 9 #include "chrome/browser/extensions/extensions_service.h"
12 #include "chrome/browser/extensions/extension_test_message_listener.h" 10 #include "chrome/browser/extensions/extension_test_message_listener.h"
13 #include "chrome/browser/extensions/extension_updater.h" 11 #include "chrome/browser/extensions/extension_updater.h"
14 #include "chrome/browser/profile.h" 12 #include "chrome/browser/profile.h"
13 #include "chrome/browser/renderer_host/render_view_host.h"
14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/test/ui_test_utils.h" 16 #include "chrome/test/ui_test_utils.h"
17 17
18 class ExtensionManagementTest : public ExtensionBrowserTest { 18 class ExtensionManagementTest : public ExtensionBrowserTest {
19 protected: 19 protected:
20 // Helper method that returns whether the extension is at the given version. 20 // Helper method that returns whether the extension is at the given version.
21 // This calls version(), which must be defined in the extension's bg page, 21 // This calls version(), which must be defined in the extension's bg page,
22 // as well as asking the extension itself. 22 // as well as asking the extension itself.
23 // 23 //
24 // Note that 'version' here means something different than the version field 24 // Note that 'version' here means something different than the version field
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 << "Reinstalling should clear the kill bit."; 304 << "Reinstalling should clear the kill bit.";
305 305
306 // Uninstalling from a non-external source should not set the kill bit. 306 // Uninstalling from a non-external source should not set the kill bit.
307 UninstallExtension(kExtensionId); 307 UninstallExtension(kExtensionId);
308 308
309 killed_ids.clear(); 309 killed_ids.clear();
310 service->extension_prefs()->GetKilledExtensionIds(&killed_ids); 310 service->extension_prefs()->GetKilledExtensionIds(&killed_ids);
311 EXPECT_TRUE(killed_ids.end() == killed_ids.find(kExtensionId)) 311 EXPECT_TRUE(killed_ids.end() == killed_ids.find(kExtensionId))
312 << "Uninstalling non-external extension should not set kill bit."; 312 << "Uninstalling non-external extension should not set kill bit.";
313 } 313 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_apitest.cc ('k') | chrome/browser/extensions/extension_omnibox_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698