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

Side by Side Diff: chrome/common/extensions/features/base_feature_provider_unittest.cc

Issue 48643003: Moved extension and value builder code to extensions component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 1 month 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) 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 "chrome/common/extensions/features/base_feature_provider.h"
6 6
7 #include "chrome/common/extensions/features/feature_channel.h" 7 #include "chrome/common/extensions/features/feature_channel.h"
8 #include "chrome/common/extensions/features/permission_feature.h" 8 #include "chrome/common/extensions/features/permission_feature.h"
9 #include "chrome/common/extensions/value_builder.h" 9 #include "extensions/common/value_builder.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using chrome::VersionInfo; 12 using chrome::VersionInfo;
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 TEST(BaseFeatureProviderTest, ManifestFeatures) { 16 TEST(BaseFeatureProviderTest, ManifestFeatures) {
17 FeatureProvider* provider = BaseFeatureProvider::GetByName("manifest"); 17 FeatureProvider* provider = BaseFeatureProvider::GetByName("manifest");
18 SimpleFeature* feature = 18 SimpleFeature* feature =
19 static_cast<SimpleFeature*>(provider->GetFeature("description")); 19 static_cast<SimpleFeature*>(provider->GetFeature("description"));
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 Feature::UNSPECIFIED_PLATFORM).result()); 186 Feature::UNSPECIFIED_PLATFORM).result());
187 EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest( 187 EXPECT_NE(Feature::IS_AVAILABLE, feature->IsAvailableToManifest(
188 "2", 188 "2",
189 Manifest::TYPE_LEGACY_PACKAGED_APP, 189 Manifest::TYPE_LEGACY_PACKAGED_APP,
190 Feature::UNSPECIFIED_LOCATION, 190 Feature::UNSPECIFIED_LOCATION,
191 Feature::UNSPECIFIED_PLATFORM).result()); 191 Feature::UNSPECIFIED_PLATFORM).result());
192 } 192 }
193 } 193 }
194 194
195 } // namespace extensions 195 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_test_util.cc ('k') | chrome/common/extensions/features/complex_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698