diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:59:01 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:59:01 +0000 |
commit | cb691e8ff78e8bac8b155a5d76625184a06aaa72 (patch) | |
tree | 8567356ad3620c50cc166a40f57e0d53c1ed2efe /chrome/browser/extensions/extensions_service_unittest.cc | |
parent | be3b19a50ec04d881b3d11ae3c7aac4e7cab4261 (diff) | |
download | chromium_src-cb691e8ff78e8bac8b155a5d76625184a06aaa72.zip chromium_src-cb691e8ff78e8bac8b155a5d76625184a06aaa72.tar.gz chromium_src-cb691e8ff78e8bac8b155a5d76625184a06aaa72.tar.bz2 |
Refactor extension constants to improve readability, debugging, and to make it easier to add new constants.
Review URL: http://codereview.chromium.org/155407
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_service_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/extensions_service_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extensions_service_unittest.cc b/chrome/browser/extensions/extensions_service_unittest.cc index ac668e1f..dd77d47 100644 --- a/chrome/browser/extensions/extensions_service_unittest.cc +++ b/chrome/browser/extensions/extensions_service_unittest.cc @@ -18,6 +18,7 @@ #include "chrome/browser/extensions/external_extension_provider.h" #include "chrome/browser/extensions/external_pref_extension_provider.h" #include "chrome/common/extensions/extension.h" +#include "chrome/common/extensions/extension_constants.h" #include "chrome/common/extensions/url_pattern.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" @@ -604,15 +605,15 @@ TEST_F(ExtensionsServiceTest, LoadAllExtensionsFromDirectoryFail) { EXPECT_TRUE(MatchPattern(GetErrors()[1], std::string("Could not load extension from '*'. ") + - Extension::kInvalidManifestError)) << GetErrors()[1]; + extension_manifest_errors::kInvalidManifest)) << GetErrors()[1]; EXPECT_TRUE(MatchPattern(GetErrors()[2], std::string("Could not load extension from '*'. ") + - Extension::kMissingFileError)) << GetErrors()[2]; + extension_manifest_errors::kMissingFile)) << GetErrors()[2]; EXPECT_TRUE(MatchPattern(GetErrors()[3], std::string("Could not load extension from '*'. ") + - Extension::kInvalidManifestError)) << GetErrors()[3]; + extension_manifest_errors::kInvalidManifest)) << GetErrors()[3]; }; // Test that partially deleted extensions are cleaned up during startup |