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

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: Cleaned up old unused function. 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 d1ea7ac0a8c7739c38f0b27aa98bbe00069f0339..2637c28f172d5955e0a48e64327c5dd5ac529be4 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());
}
« no previous file with comments | « chrome/browser/extensions/user_script_master.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698