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

Side by Side Diff: chrome/common/extensions/feature_unittest.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
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/feature.h" 5 #include "chrome/common/extensions/feature.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 using chrome::VersionInfo; 9 using chrome::VersionInfo;
10 using extensions::Extension;
10 using extensions::Feature; 11 using extensions::Feature;
11 12
12 namespace { 13 namespace {
13 14
14 struct IsAvailableTestData { 15 struct IsAvailableTestData {
15 std::string extension_id; 16 std::string extension_id;
16 Extension::Type extension_type; 17 Extension::Type extension_type;
17 Feature::Location location; 18 Feature::Location location;
18 Feature::Platform platform; 19 Feature::Platform platform;
19 int manifest_version; 20 int manifest_version;
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 IsAvailableInChannel("", VersionInfo::CHANNEL_CANARY)); 543 IsAvailableInChannel("", VersionInfo::CHANNEL_CANARY));
543 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, 544 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL,
544 IsAvailableInChannel("", VersionInfo::CHANNEL_DEV)); 545 IsAvailableInChannel("", VersionInfo::CHANNEL_DEV));
545 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, 546 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL,
546 IsAvailableInChannel("", VersionInfo::CHANNEL_BETA)); 547 IsAvailableInChannel("", VersionInfo::CHANNEL_BETA));
547 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, 548 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL,
548 IsAvailableInChannel("", VersionInfo::CHANNEL_STABLE)); 549 IsAvailableInChannel("", VersionInfo::CHANNEL_STABLE));
549 } 550 }
550 551
551 } // namespace 552 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/extensions/feature.cc ('k') | chrome/common/extensions/manifest_tests/extension_manifest_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698