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

Unified Diff: chrome/common/extensions/features/complex_feature_unittest.cc

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/common/extensions/features/complex_feature.cc ('k') | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/complex_feature_unittest.cc
diff --git a/chrome/common/extensions/features/complex_feature_unittest.cc b/chrome/common/extensions/features/complex_feature_unittest.cc
index 01dc26184e4acebb5e68fe4bd022577bb566f0bc..4da03deaabfd1f61faf1a9a2a305f45c17daf914 100644
--- a/chrome/common/extensions/features/complex_feature_unittest.cc
+++ b/chrome/common/extensions/features/complex_feature_unittest.cc
@@ -11,9 +11,9 @@
using chrome::VersionInfo;
using extensions::ComplexFeature;
using extensions::DictionaryBuilder;
-using extensions::Extension;
using extensions::Feature;
using extensions::ListBuilder;
+using extensions::Manifest;
using extensions::SimpleFeature;
namespace {
@@ -54,7 +54,7 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesWhitelist) {
// Test match 1st rule.
EXPECT_EQ(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"foo",
- Extension::TYPE_EXTENSION,
+ Manifest::TYPE_EXTENSION,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
@@ -62,7 +62,7 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesWhitelist) {
// Test match 2nd rule.
EXPECT_EQ(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"bar",
- Extension::TYPE_LEGACY_PACKAGED_APP,
+ Manifest::TYPE_LEGACY_PACKAGED_APP,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
@@ -70,13 +70,13 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesWhitelist) {
// Test whitelist with wrong extension type.
EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"bar",
- Extension::TYPE_EXTENSION,
+ Manifest::TYPE_EXTENSION,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"foo",
- Extension::TYPE_LEGACY_PACKAGED_APP,
+ Manifest::TYPE_LEGACY_PACKAGED_APP,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
@@ -110,7 +110,7 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesChannels) {
Feature::ScopedCurrentChannel current_channel(VersionInfo::CHANNEL_UNKNOWN);
EXPECT_EQ(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"1",
- Extension::TYPE_EXTENSION,
+ Manifest::TYPE_EXTENSION,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
@@ -121,7 +121,7 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesChannels) {
Feature::ScopedCurrentChannel current_channel(VersionInfo::CHANNEL_BETA);
EXPECT_EQ(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"2",
- Extension::TYPE_LEGACY_PACKAGED_APP,
+ Manifest::TYPE_LEGACY_PACKAGED_APP,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
@@ -132,7 +132,7 @@ TEST_F(ExtensionComplexFeatureTest, MultipleRulesChannels) {
Feature::ScopedCurrentChannel current_channel(VersionInfo::CHANNEL_BETA);
EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
"1",
- Extension::TYPE_EXTENSION,
+ Manifest::TYPE_EXTENSION,
Feature::UNSPECIFIED_LOCATION,
Feature::UNSPECIFIED_PLATFORM,
Feature::GetCurrentPlatform()).result());
« no previous file with comments | « chrome/common/extensions/features/complex_feature.cc ('k') | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698