diff options
-rw-r--r-- | chrome/common/extensions/extension_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/common/extensions/extension_unittest.cc b/chrome/common/extensions/extension_unittest.cc index 0512f80..259849b 100644 --- a/chrome/common/extensions/extension_unittest.cc +++ b/chrome/common/extensions/extension_unittest.cc @@ -13,8 +13,8 @@ #include "base/file_path.h" #include "base/file_util.h" #include "base/i18n/rtl.h" -#include "base/string_util.h" #include "base/path_service.h" +#include "base/string_util.h" #include "base/utf_string_conversions.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/extensions/extension_action.h" @@ -317,10 +317,10 @@ TEST(ExtensionTest, InitFromValueValid) { ListValue* permissions = new ListValue; permissions->Set(0, Value::CreateStringValue("file:///C:/foo.txt")); input_value.Set(keys::kPermissions, permissions); - EXPECT_FALSE(extension.InitFromValue(input_value, false, &error));
- EXPECT_TRUE(MatchPatternASCII(error, errors::kInvalidPermission));
- input_value.Remove(keys::kPermissions, NULL);
- error.clear();
+ EXPECT_FALSE(extension.InitFromValue(input_value, false, &error)); + EXPECT_TRUE(MatchPatternASCII(error, errors::kInvalidPermission)); + input_value.Remove(keys::kPermissions, NULL); + error.clear(); // Test with an options page. input_value.SetString(keys::kOptionsPage, "options.html"); |