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 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
12 #include "chrome/common/extensions/extension_manifest_constants.h" | |
13 #include "chrome/common/extensions/features/feature_channel.h" | 12 #include "chrome/common/extensions/features/feature_channel.h" |
14 #include "extensions/common/manifest.h" | 13 #include "extensions/common/manifest.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 | 15 |
17 class ExtensionManifestTest : public testing::Test { | 16 class ExtensionManifestTest : public testing::Test { |
18 public: | 17 public: |
19 ExtensionManifestTest(); | 18 ExtensionManifestTest(); |
20 | 19 |
21 protected: | 20 protected: |
22 // Helper class that simplifies creating methods that take either a filename | 21 // Helper class that simplifies creating methods that take either a filename |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Force the manifest tests to run as though they are on trunk, since several | 145 // Force the manifest tests to run as though they are on trunk, since several |
147 // tests rely on manifest features being available that aren't on | 146 // tests rely on manifest features being available that aren't on |
148 // stable/beta. | 147 // stable/beta. |
149 // | 148 // |
150 // These objects nest, so if a test wants to explicitly test the behaviour | 149 // These objects nest, so if a test wants to explicitly test the behaviour |
151 // on stable or beta, declare it inside that test. | 150 // on stable or beta, declare it inside that test. |
152 extensions::ScopedCurrentChannel current_channel_; | 151 extensions::ScopedCurrentChannel current_channel_; |
153 }; | 152 }; |
154 | 153 |
155 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ | 154 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ |
OLD | NEW |