Index: extensions/common/features/simple_feature_unittest.cc |
diff --git a/extensions/common/features/simple_feature_unittest.cc b/extensions/common/features/simple_feature_unittest.cc |
index 9f723fab0663d23e8a49bad83c792fcf0e0039f1..dce57404db216e06cd2d40bc388b63d796fdc8d4 100644 |
--- a/extensions/common/features/simple_feature_unittest.cc |
+++ b/extensions/common/features/simple_feature_unittest.cc |
@@ -380,6 +380,8 @@ TEST(SimpleFeatureTest, Location) { |
// Component extensions can access any location. |
EXPECT_TRUE(LocationIsAvailable(SimpleFeature::COMPONENT_LOCATION, |
Manifest::COMPONENT)); |
+ EXPECT_TRUE(LocationIsAvailable(SimpleFeature::EXTERNAL_COMPONENT_LOCATION, |
+ Manifest::COMPONENT)); |
EXPECT_TRUE( |
LocationIsAvailable(SimpleFeature::POLICY_LOCATION, Manifest::COMPONENT)); |
EXPECT_TRUE(LocationIsAvailable(SimpleFeature::UNSPECIFIED_LOCATION, |
@@ -391,6 +393,8 @@ TEST(SimpleFeatureTest, Location) { |
EXPECT_FALSE(LocationIsAvailable(SimpleFeature::COMPONENT_LOCATION, |
Manifest::UNPACKED)); |
EXPECT_FALSE(LocationIsAvailable(SimpleFeature::COMPONENT_LOCATION, |
+ Manifest::EXTERNAL_COMPONENT)); |
+ EXPECT_FALSE(LocationIsAvailable(SimpleFeature::COMPONENT_LOCATION, |
Manifest::EXTERNAL_PREF_DOWNLOAD)); |
EXPECT_FALSE(LocationIsAvailable(SimpleFeature::COMPONENT_LOCATION, |
Manifest::EXTERNAL_POLICY)); |
@@ -405,11 +409,18 @@ TEST(SimpleFeatureTest, Location) { |
// Non-policy (except component) extensions cannot access policy. |
EXPECT_FALSE(LocationIsAvailable(SimpleFeature::POLICY_LOCATION, |
+ Manifest::EXTERNAL_COMPONENT)); |
+ EXPECT_FALSE(LocationIsAvailable(SimpleFeature::POLICY_LOCATION, |
Manifest::INVALID_LOCATION)); |
EXPECT_FALSE( |
LocationIsAvailable(SimpleFeature::POLICY_LOCATION, Manifest::UNPACKED)); |
EXPECT_FALSE(LocationIsAvailable(SimpleFeature::POLICY_LOCATION, |
Manifest::EXTERNAL_PREF_DOWNLOAD)); |
+ |
+ // External component extensions can access the "external_component" |
+ // location. |
+ EXPECT_TRUE(LocationIsAvailable(SimpleFeature::EXTERNAL_COMPONENT_LOCATION, |
+ Manifest::EXTERNAL_COMPONENT)); |
} |
TEST(SimpleFeatureTest, Platform) { |