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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifest_test.h

Issue 12042096: Move page action manifest parsing out of Extension; the first multi-key manifest handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/manifest_tests/extension_manifest_test.h
diff --git a/chrome/common/extensions/manifest_tests/extension_manifest_test.h b/chrome/common/extensions/manifest_tests/extension_manifest_test.h
index 06a121f452bd1b696ed1990200295e8efd69169d..79c1ea246aec03f8109e49e58560750805c5a430 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifest_test.h
+++ b/chrome/common/extensions/manifest_tests/extension_manifest_test.h
@@ -5,8 +5,9 @@
#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_
#define CHROME_COMMON_EXTENSIONS_MANIFEST_TESTS_EXTENSION_MANIFEST_TEST_H_
-#include "base/values.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/values.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/features/feature.h"
@@ -20,11 +21,6 @@ class ExtensionManifestTest : public testing::Test {
protected:
virtual void TearDown() OVERRIDE;
- // If filename is a relative path, LoadManifestFile will treat it relative to
- // the appropriate test directory.
- static DictionaryValue* LoadManifestFile(const std::string& filename,
- std::string* error);
-
// Helper class that simplifies creating methods that take either a filename
// to a manifest or the manifest itself.
class Manifest {
@@ -46,7 +42,8 @@ class ExtensionManifestTest : public testing::Test {
const std::string& name() const { return name_; };
- DictionaryValue* GetManifest(std::string* error) const;
+ DictionaryValue* GetManifest(char const* test_data_dir,
+ std::string* error) const;
private:
const std::string name_;
@@ -54,6 +51,13 @@ class ExtensionManifestTest : public testing::Test {
mutable scoped_ptr<DictionaryValue> manifest_holder_;
};
+ // The subdirectory in which to find test data files.
+ virtual char const* test_data_dir();
+
+ scoped_ptr<DictionaryValue> LoadManifest(
+ char const* manifest_name,
+ std::string* error);
+
scoped_refptr<extensions::Extension> LoadExtension(
const Manifest& manifest,
std::string* error,
« no previous file with comments | « chrome/common/extensions/extension_unittest.cc ('k') | chrome/common/extensions/manifest_tests/extension_manifest_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698