OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/extensions/features/base_feature_provider.h" | 5 #include "extensions/common/features/base_feature_provider.h" |
6 | 6 |
7 #include "chrome/common/extensions/features/chrome_channel_feature_filter.h" | 7 #include "chrome/common/extensions/features/chrome_channel_feature_filter.h" |
8 #include "chrome/common/extensions/features/feature_channel.h" | 8 #include "chrome/common/extensions/features/feature_channel.h" |
9 #include "chrome/common/extensions/features/permission_feature.h" | 9 #include "extensions/common/features/permission_feature.h" |
10 #include "extensions/common/value_builder.h" | 10 #include "extensions/common/value_builder.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 using chrome::VersionInfo; | 13 using chrome::VersionInfo; |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 TEST(BaseFeatureProviderTest, ManifestFeatures) { | 17 TEST(BaseFeatureProviderTest, ManifestFeatures) { |
18 FeatureProvider* provider = BaseFeatureProvider::GetByName("manifest"); | 18 FeatureProvider* provider = BaseFeatureProvider::GetByName("manifest"); |
19 SimpleFeature* feature = | 19 SimpleFeature* feature = |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 Feature::UNSPECIFIED_PLATFORM).result()); | 190 Feature::UNSPECIFIED_PLATFORM).result()); |
191 EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest( | 191 EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest( |
192 "2", | 192 "2", |
193 Manifest::TYPE_LEGACY_PACKAGED_APP, | 193 Manifest::TYPE_LEGACY_PACKAGED_APP, |
194 Feature::UNSPECIFIED_LOCATION, | 194 Feature::UNSPECIFIED_LOCATION, |
195 Feature::UNSPECIFIED_PLATFORM).result()); | 195 Feature::UNSPECIFIED_PLATFORM).result()); |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
199 } // namespace extensions | 199 } // namespace extensions |
OLD | NEW |