diff options
author | hayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 02:02:39 +0000 |
---|---|---|
committer | hayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 02:02:39 +0000 |
commit | 4a2029f4f6998d628a98070ee7e2c1f14230eb82 (patch) | |
tree | 4571ea90bf7c926153fa6ddf66f86423cdba804d /chrome/browser/extensions | |
parent | 068ba6c7660d4aa2deea80ba22d2766b21e398f4 (diff) | |
download | chromium_src-4a2029f4f6998d628a98070ee7e2c1f14230eb82.zip chromium_src-4a2029f4f6998d628a98070ee7e2c1f14230eb82.tar.gz chromium_src-4a2029f4f6998d628a98070ee7e2c1f14230eb82.tar.bz2 |
Tiny clean up. Use ASSERT_EQ instead of EXPECT_EQ.
BUG=None
TEST=UserScriptMasterTest
Review URL: http://codereview.chromium.org/434034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/user_script_master_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/extensions/user_script_master_unittest.cc b/chrome/browser/extensions/user_script_master_unittest.cc index 29faaea..25ef7fc 100644 --- a/chrome/browser/extensions/user_script_master_unittest.cc +++ b/chrome/browser/extensions/user_script_master_unittest.cc @@ -4,7 +4,7 @@ #include "chrome/browser/extensions/user_script_master.h" -#include <fstream> +#include <string> #include "base/file_path.h" #include "base/file_util.h" @@ -148,7 +148,7 @@ TEST_F(UserScriptMasterTest, Parse1) { UserScript script; EXPECT_TRUE(UserScriptMaster::ScriptReloader::ParseMetadataHeader( text, &script)); - EXPECT_EQ(3U, script.globs().size()); + ASSERT_EQ(3U, script.globs().size()); EXPECT_EQ("*mail.google.com*", script.globs()[0]); EXPECT_EQ("*mail.yahoo.com*", script.globs()[1]); EXPECT_EQ("*mail.msn.com*", script.globs()[2]); @@ -160,7 +160,7 @@ TEST_F(UserScriptMasterTest, Parse2) { UserScript script; EXPECT_TRUE(UserScriptMaster::ScriptReloader::ParseMetadataHeader( text, &script)); - EXPECT_EQ(1U, script.globs().size()); + ASSERT_EQ(1U, script.globs().size()); EXPECT_EQ("*", script.globs()[0]); } @@ -172,7 +172,7 @@ TEST_F(UserScriptMasterTest, Parse3) { UserScript script; UserScriptMaster::ScriptReloader::ParseMetadataHeader(text, &script); - EXPECT_EQ(1U, script.globs().size()); + ASSERT_EQ(1U, script.globs().size()); EXPECT_EQ("*foo*", script.globs()[0]); } @@ -187,7 +187,7 @@ TEST_F(UserScriptMasterTest, Parse4) { EXPECT_TRUE(UserScriptMaster::ScriptReloader::ParseMetadataHeader( text, &script)); EXPECT_EQ(0U, script.globs().size()); - EXPECT_EQ(2U, script.url_patterns().size()); + ASSERT_EQ(2U, script.url_patterns().size()); EXPECT_EQ("http://*.mail.google.com/*", script.url_patterns()[0].GetAsString()); EXPECT_EQ("http://mail.yahoo.com/*", |