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

Unified Diff: chrome/browser/extensions/extension_prefs_unittest.cc

Issue 14699002: Move BrowserAction references from ExtensionPrefs to ExtensionActionAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extension_toolbar_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs_unittest.cc
diff --git a/chrome/browser/extensions/extension_prefs_unittest.cc b/chrome/browser/extensions/extension_prefs_unittest.cc
index 3214ca34c7673ebdd6cfc3407fce0874db1af0cf..990bb5ea4f68ebbfa0a658019c26cdc7098a5dcc 100644
--- a/chrome/browser/extensions/extension_prefs_unittest.cc
+++ b/chrome/browser/extensions/extension_prefs_unittest.cc
@@ -451,42 +451,6 @@ class ExtensionPrefsAcknowledgment : public ExtensionPrefsTest {
};
TEST_F(ExtensionPrefsAcknowledgment, Acknowledgment) {}
-// Tests force hiding browser actions.
-class ExtensionPrefsHidingBrowserActions : public ExtensionPrefsTest {
- public:
- virtual void Initialize() OVERRIDE {
- // Install 5 extensions.
- for (int i = 0; i < 5; i++) {
- std::string name = "test" + base::IntToString(i);
- extensions_.push_back(prefs_.AddExtension(name));
- }
-
- ExtensionList::const_iterator iter;
- for (iter = extensions_.begin(); iter != extensions_.end(); ++iter)
- EXPECT_TRUE(prefs()->GetBrowserActionVisibility(*iter));
-
- prefs()->SetBrowserActionVisibility(extensions_[0], false);
- prefs()->SetBrowserActionVisibility(extensions_[1], true);
- }
-
- virtual void Verify() OVERRIDE {
- // Make sure the one we hid is hidden.
- EXPECT_FALSE(prefs()->GetBrowserActionVisibility(extensions_[0]));
-
- // Make sure the other id's are not hidden.
- ExtensionList::const_iterator iter = extensions_.begin() + 1;
- for (; iter != extensions_.end(); ++iter) {
- SCOPED_TRACE(base::StringPrintf("Loop %d ",
- static_cast<int>(iter - extensions_.begin())));
- EXPECT_TRUE(prefs()->GetBrowserActionVisibility(*iter));
- }
- }
-
- private:
- ExtensionList extensions_;
-};
-TEST_F(ExtensionPrefsHidingBrowserActions, ForceHide) {}
-
// Tests the idle install information functions.
class ExtensionPrefsDelayedInstallInfo : public ExtensionPrefsTest {
public:
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extension_toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698