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

Unified Diff: content/public/test/test_web_ui.cc

Issue 2269963003: Site Settings Desktop: Fix bug with deleting manually added exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 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
« content/public/test/test_web_ui.h ('K') | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_web_ui.cc
diff --git a/content/public/test/test_web_ui.cc b/content/public/test/test_web_ui.cc
index bbcf197ee762d9b0fda0979770c2282fb9b32c43..ff60b1f1899b675d99c6853e4ec0306bcaf5b79e 100644
--- a/content/public/test/test_web_ui.cc
+++ b/content/public/test/test_web_ui.cc
@@ -88,7 +88,11 @@ void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name,
const base::Value& arg2,
const base::Value& arg3,
const base::Value& arg4) {
- NOTREACHED();
+ call_data_.push_back(new CallData(function_name));
+ call_data_.back()->TakeAsArg1(arg1.DeepCopy());
+ call_data_.back()->TakeAsArg2(arg2.DeepCopy());
+ call_data_.back()->TakeAsArg3(arg3.DeepCopy());
+ call_data_.back()->TakeAsArg4(arg4.DeepCopy());
}
void TestWebUI::CallJavascriptFunctionUnsafe(
@@ -120,4 +124,8 @@ void TestWebUI::CallData::TakeAsArg3(base::Value* arg) {
arg3_.reset(arg);
}
+void TestWebUI::CallData::TakeAsArg4(base::Value* arg) {
+ arg4_.reset(arg);
+}
+
} // namespace content
« content/public/test/test_web_ui.h ('K') | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698