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

Unified Diff: extensions/renderer/api_test_base.cc

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Add binding.html layout test for connection error with reason. Reset IEC when reset() or close()… Created 3 years, 9 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/api_test_base.cc
diff --git a/extensions/renderer/api_test_base.cc b/extensions/renderer/api_test_base.cc
index c71e843f16c25870976c3600a42a02024328a709..b4f6342f64a11ae9f8e014fd6614ea0a4312df18 100644
--- a/extensions/renderer/api_test_base.cc
+++ b/extensions/renderer/api_test_base.cc
@@ -18,6 +18,7 @@
#include "gin/converter.h"
#include "gin/dictionary.h"
#include "gin/modules/console.h"
+#include "gin/modules/timer.h"
#include "mojo/edk/js/core.h"
#include "mojo/edk/js/handle.h"
#include "mojo/edk/js/support.h"
@@ -157,6 +158,9 @@ void ApiTestEnvironment::RegisterModules() {
->AddBuiltinModule(env()->isolate(), gin::Console::kModuleName,
gin::Console::GetModule(env()->isolate()));
gin::ModuleRegistry::From(env()->context()->v8_context())
+ ->AddBuiltinModule(env()->isolate(), gin::TimerModule::kName,
+ gin::TimerModule::GetModule(env()->isolate()));
+ gin::ModuleRegistry::From(env()->context()->v8_context())
->AddBuiltinModule(env()->isolate(), mojo::edk::js::Core::kModuleName,
mojo::edk::js::Core::GetModule(env()->isolate()));
gin::ModuleRegistry::From(env()->context()->v8_context())

Powered by Google App Engine
This is Rietveld 408576698