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/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 Loading... |
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 |
OLD | NEW |