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

Unified Diff: extensions/renderer/bindings/api_bindings_system_unittest.cc

Issue 2962093002: [Extensions Bindings] Add activity logging of custom handling (Closed)
Patch Set: nit Created 3 years, 5 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: extensions/renderer/bindings/api_bindings_system_unittest.cc
diff --git a/extensions/renderer/bindings/api_bindings_system_unittest.cc b/extensions/renderer/bindings/api_bindings_system_unittest.cc
index 6c0eb0af779392e8618923df1e3dc91803373113..aea5e566cb29248c00f2dcb80a1a53fee834ba97 100644
--- a/extensions/renderer/bindings/api_bindings_system_unittest.cc
+++ b/extensions/renderer/bindings/api_bindings_system_unittest.cc
@@ -94,6 +94,11 @@ bool AllowAllAPIs(v8::Local<v8::Context> context, const std::string& name) {
return true;
}
+void DoNothingWithSilentRequest(
+ v8::Local<v8::Context> context,
+ const std::string& call_name,
+ const std::vector<v8::Local<v8::Value>>& arguments) {}
+
} // namespace
APIBindingsSystemTest::APIBindingsSystemTest() {}
@@ -118,6 +123,7 @@ void APIBindingsSystemTest::SetUp() {
base::Bind(&APIBindingsSystemTest::OnAPIRequest, base::Unretained(this)),
base::Bind(&APIBindingsSystemTest::OnEventListenersChanged,
base::Unretained(this)),
+ base::Bind(&DoNothingWithSilentRequest),
APILastError(base::Bind(&APIBindingsSystemTest::GetLastErrorParent,
base::Unretained(this)),
APILastError::AddConsoleError()));
« no previous file with comments | « extensions/renderer/bindings/api_bindings_system.cc ('k') | extensions/renderer/bindings/api_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698