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 b125dfaf341a2403d6f142bda71d2f9b1949a07b..4e8741ceefc37fe2977bfb9da2d206f44d80dae8 100644 |
--- a/chrome/common/extensions/manifest_tests/extension_manifest_test.h |
+++ b/chrome/common/extensions/manifest_tests/extension_manifest_test.h |
@@ -73,6 +73,20 @@ class ExtensionManifestTest : public testing::Test { |
extensions::Extension::INTERNAL, |
int flags = extensions::Extension::NO_FLAGS); |
+ scoped_refptr<extensions::Extension> LoadAndExpectWarning( |
+ const Manifest& manifest, |
+ const std::string& expected_error, |
+ extensions::Extension::Location location = |
+ extensions::Extension::INTERNAL, |
+ int flags = extensions::Extension::NO_FLAGS); |
+ |
+ scoped_refptr<extensions::Extension> LoadAndExpectWarning( |
+ char const* manifest_name, |
+ const std::string& expected_error, |
+ extensions::Extension::Location location = |
+ extensions::Extension::INTERNAL, |
+ int flags = extensions::Extension::NO_FLAGS); |
+ |
void VerifyExpectedError(extensions::Extension* extension, |
const std::string& name, |
const std::string& error, |
@@ -92,9 +106,13 @@ class ExtensionManifestTest : public testing::Test { |
void AddPattern(URLPatternSet* extent, const std::string& pattern); |
- // used to differentiate between calls to LoadAndExpectError and |
- // LoadAndExpectSuccess via function RunTestcases |
- enum EXPECT_TYPE { EXPECT_TYPE_ERROR, EXPECT_TYPE_SUCCESS }; |
+ // used to differentiate between calls to LoadAndExpectError, |
+ // LoadAndExpectWarning and LoadAndExpectSuccess via function RunTestcases. |
+ enum EXPECT_TYPE { |
+ EXPECT_TYPE_ERROR, |
+ EXPECT_TYPE_WARNING, |
+ EXPECT_TYPE_SUCCESS |
+ }; |
struct Testcase { |
std::string manifest_filename_; |