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

Unified Diff: chrome/browser/extensions/user_script_master_unittest.cc

Issue 7552028: Injected CSS localization fix (see bug no.) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated. Created 9 years, 4 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/browser/extensions/user_script_master_unittest.cc
diff --git a/chrome/browser/extensions/user_script_master_unittest.cc b/chrome/browser/extensions/user_script_master_unittest.cc
index 78c4c128eab6bd4050952073b715477687197c54..6f8a381e915ee8eafc9d9161156d421c29340be2 100644
--- a/chrome/browser/extensions/user_script_master_unittest.cc
+++ b/chrome/browser/extensions/user_script_master_unittest.cc
@@ -220,7 +220,11 @@ TEST_F(UserScriptMasterTest, SkipBOMAtTheBeginning) {
UserScriptList user_scripts;
user_scripts.push_back(user_script);
- UserScriptMaster::ScriptReloader::LoadUserScripts(&user_scripts);
+ UserScriptMaster::ScriptReloader* script_reloader =
+ new UserScriptMaster::ScriptReloader(NULL);
+ script_reloader->AddRef();
+ script_reloader->LoadUserScripts(&user_scripts);
+ script_reloader->Release();
EXPECT_EQ(content.substr(3),
user_scripts[0].js_scripts()[0].GetContent().as_string());
@@ -239,7 +243,11 @@ TEST_F(UserScriptMasterTest, LeaveBOMNotAtTheBeginning) {
UserScriptList user_scripts;
user_scripts.push_back(user_script);
- UserScriptMaster::ScriptReloader::LoadUserScripts(&user_scripts);
+ UserScriptMaster::ScriptReloader* script_reloader =
+ new UserScriptMaster::ScriptReloader(NULL);
+ script_reloader->AddRef();
+ script_reloader->LoadUserScripts(&user_scripts);
+ script_reloader->Release();
EXPECT_EQ(content, user_scripts[0].js_scripts()[0].GetContent().as_string());
}

Powered by Google App Engine
This is Rietveld 408576698