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/simple_feature.h" | 5 #include "chrome/common/extensions/features/simple_feature.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/value_builder.h" | 8 #include "extensions/common/value_builder.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 using chrome::VersionInfo; | 11 using chrome::VersionInfo; |
12 using extensions::DictionaryBuilder; | 12 using extensions::DictionaryBuilder; |
13 using extensions::Extension; | 13 using extensions::Extension; |
14 using extensions::Feature; | 14 using extensions::Feature; |
15 using extensions::ListBuilder; | 15 using extensions::ListBuilder; |
16 using extensions::Manifest; | 16 using extensions::Manifest; |
17 using extensions::ScopedCurrentChannel; | 17 using extensions::ScopedCurrentChannel; |
18 using extensions::SimpleFeature; | 18 using extensions::SimpleFeature; |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_CANARY)); | 657 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_CANARY)); |
658 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, | 658 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, |
659 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_DEV)); | 659 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_DEV)); |
660 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, | 660 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, |
661 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_BETA)); | 661 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_BETA)); |
662 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, | 662 EXPECT_EQ(Feature::UNSUPPORTED_CHANNEL, |
663 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_STABLE)); | 663 IsAvailableInChannel("trunk", VersionInfo::CHANNEL_STABLE)); |
664 } | 664 } |
665 | 665 |
666 } // namespace | 666 } // namespace |
OLD | NEW |