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

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

Issue 6598084: Get rid of temporary render_view_host.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | chrome/browser/fav_icon_helper.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/autoupdate_interceptor.h" 6 #include "chrome/browser/extensions/autoupdate_interceptor.h"
7 #include "chrome/browser/extensions/extension_browsertest.h" 7 #include "chrome/browser/extensions/extension_browsertest.h"
8 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_test_message_listener.h" 10 #include "chrome/browser/extensions/extension_test_message_listener.h"
11 #include "chrome/browser/extensions/extension_updater.h" 11 #include "chrome/browser/extensions/extension_updater.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/prefs/scoped_pref_update.h" 13 #include "chrome/browser/prefs/scoped_pref_update.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/renderer_host/render_view_host.h"
16 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "chrome/test/ui_test_utils.h" 18 #include "chrome/test/ui_test_utils.h"
19 #include "content/browser/renderer_host/render_view_host.h"
20 20
21 class ExtensionManagementTest : public ExtensionBrowserTest { 21 class ExtensionManagementTest : public ExtensionBrowserTest {
22 protected: 22 protected:
23 // Helper method that returns whether the extension is at the given version. 23 // Helper method that returns whether the extension is at the given version.
24 // This calls version(), which must be defined in the extension's bg page, 24 // This calls version(), which must be defined in the extension's bg page,
25 // as well as asking the extension itself. 25 // as well as asking the extension itself.
26 // 26 //
27 // Note that 'version' here means something different than the version field 27 // Note that 'version' here means something different than the version field
28 // in the extension's manifest. We use the version as reported by the 28 // in the extension's manifest. We use the version as reported by the
29 // background page to test how overinstalling crx files with the same 29 // background page to test how overinstalling crx files with the same
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // Check that emptying the list triggers uninstall. 368 // Check that emptying the list triggers uninstall.
369 { 369 {
370 ScopedPrefUpdate pref_update(prefs, prefs::kExtensionInstallForceList); 370 ScopedPrefUpdate pref_update(prefs, prefs::kExtensionInstallForceList);
371 prefs->ClearPref(prefs::kExtensionInstallForceList); 371 prefs->ClearPref(prefs::kExtensionInstallForceList);
372 } 372 }
373 EXPECT_EQ(size_before, extensions->size()); 373 EXPECT_EQ(size_before, extensions->size());
374 ExtensionList::const_iterator i; 374 ExtensionList::const_iterator i;
375 for (i = extensions->begin(); i != extensions->end(); ++i) 375 for (i = extensions->begin(); i != extensions->end(); ++i)
376 EXPECT_NE(kExtensionId, (*i)->id()); 376 EXPECT_NE(kExtensionId, (*i)->id());
377 } 377 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | chrome/browser/fav_icon_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698