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

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

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/extensions/extension_service_unittest.h" 5 #include "chrome/browser/extensions/extension_service_unittest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 using extensions::ExtensionCreator; 138 using extensions::ExtensionCreator;
139 using extensions::ExtensionPrefs; 139 using extensions::ExtensionPrefs;
140 using extensions::ExtensionResource; 140 using extensions::ExtensionResource;
141 using extensions::ExtensionSystem; 141 using extensions::ExtensionSystem;
142 using extensions::FeatureSwitch; 142 using extensions::FeatureSwitch;
143 using extensions::Manifest; 143 using extensions::Manifest;
144 using extensions::PermissionSet; 144 using extensions::PermissionSet;
145 using extensions::TestExtensionSystem; 145 using extensions::TestExtensionSystem;
146 using extensions::URLPatternSet; 146 using extensions::URLPatternSet;
147 147
148 namespace keys = extension_manifest_keys; 148 namespace keys = extensions::manifest_keys;
149 149
150 namespace { 150 namespace {
151 151
152 // Extension ids used during testing. 152 // Extension ids used during testing.
153 const char* const all_zero = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; 153 const char* const all_zero = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
154 const char* const zero_n_one = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"; 154 const char* const zero_n_one = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab";
155 const char* const good0 = "behllobkkfkfnphdnhnkndlbkcpglgmj"; 155 const char* const good0 = "behllobkkfkfnphdnhnkndlbkcpglgmj";
156 const char* const good1 = "hpiknbiabeeppbpihjehijgoemciehgk"; 156 const char* const good1 = "hpiknbiabeeppbpihjehijgoemciehgk";
157 const char* const good2 = "bjafgdebaacbbbecmhlhpofkepfkgcpa"; 157 const char* const good2 = "bjafgdebaacbbbecmhlhpofkepfkgcpa";
158 const char* const good_crx = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; 158 const char* const good_crx = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
(...skipping 6219 matching lines...) Expand 10 before | Expand all | Expand 10 after
6378 EXPECT_TRUE(notifications.CheckNotifications( 6378 EXPECT_TRUE(notifications.CheckNotifications(
6379 chrome::NOTIFICATION_EXTENSION_INSTALLED)); 6379 chrome::NOTIFICATION_EXTENSION_INSTALLED));
6380 6380
6381 EXPECT_TRUE(service_->GetInstalledExtension(id)); 6381 EXPECT_TRUE(service_->GetInstalledExtension(id));
6382 EXPECT_FALSE(service_->extensions()->Contains(id)); 6382 EXPECT_FALSE(service_->extensions()->Contains(id));
6383 EXPECT_TRUE(service_->blacklisted_extensions()->Contains(id)); 6383 EXPECT_TRUE(service_->blacklisted_extensions()->Contains(id));
6384 EXPECT_TRUE(service_->extension_prefs()->IsExtensionBlacklisted(id)); 6384 EXPECT_TRUE(service_->extension_prefs()->IsExtensionBlacklisted(id));
6385 EXPECT_TRUE( 6385 EXPECT_TRUE(
6386 service_->extension_prefs()->IsBlacklistedExtensionAcknowledged(id)); 6386 service_->extension_prefs()->IsBlacklistedExtensionAcknowledged(id));
6387 } 6387 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_sorting_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698