| 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" | |
| 12 #include "chrome/common/extensions/features/feature_channel.h" | 11 #include "chrome/common/extensions/features/feature_channel.h" |
| 12 #include "extensions/common/extension.h" |
| 13 #include "extensions/common/manifest.h" | 13 #include "extensions/common/manifest.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 class ExtensionManifestTest : public testing::Test { | 16 class ExtensionManifestTest : public testing::Test { |
| 17 public: | 17 public: |
| 18 ExtensionManifestTest(); | 18 ExtensionManifestTest(); |
| 19 | 19 |
| 20 protected: | 20 protected: |
| 21 // Helper class that simplifies creating methods that take either a filename | 21 // Helper class that simplifies creating methods that take either a filename |
| 22 // to a manifest or the manifest itself. | 22 // to a manifest or the manifest itself. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // 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 |
| 146 // tests rely on manifest features being available that aren't on | 146 // tests rely on manifest features being available that aren't on |
| 147 // stable/beta. | 147 // stable/beta. |
| 148 // | 148 // |
| 149 // 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 |
| 150 // on stable or beta, declare it inside that test. | 150 // on stable or beta, declare it inside that test. |
| 151 extensions::ScopedCurrentChannel current_channel_; | 151 extensions::ScopedCurrentChannel current_channel_; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ | 154 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_ |
| OLD | NEW |