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

Unified Diff: extensions/renderer/api/serial/serial_api_unittest.cc

Issue 652313002: Enable the mojo-based serial API in the renderer behind a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-js-natives-registration
Patch Set: fix windows build Created 6 years, 2 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
« no previous file with comments | « extensions/renderer/api/serial/data_sender_unittest.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/serial/serial_api_unittest.cc
diff --git a/extensions/renderer/api/serial/serial_api_unittest.cc b/extensions/renderer/api/serial/serial_api_unittest.cc
index a01c69fe57a0e7871a43ddf4c72c1cfe7e838bfc..36cbe456cc01be0dd174615d1596dbfb1f944b3d 100644
--- a/extensions/renderer/api/serial/serial_api_unittest.cc
+++ b/extensions/renderer/api/serial/serial_api_unittest.cc
@@ -397,18 +397,7 @@ class SerialApiTest : public ApiTestBase {
void SetUp() override {
ApiTestBase::SetUp();
- env()->RegisterModule("async_waiter", IDR_ASYNC_WAITER_JS);
- env()->RegisterModule("data_receiver", IDR_DATA_RECEIVER_JS);
- env()->RegisterModule("data_sender", IDR_DATA_SENDER_JS);
env()->RegisterModule("serial", IDR_SERIAL_CUSTOM_BINDINGS_JS);
- env()->RegisterModule("serial_service", IDR_SERIAL_SERVICE_JS);
- env()->RegisterModule("device/serial/data_stream.mojom",
- IDR_DATA_STREAM_MOJOM_JS);
- env()->RegisterModule("device/serial/data_stream_serialization.mojom",
- IDR_DATA_STREAM_SERIALIZATION_MOJOM_JS);
- env()->RegisterModule("device/serial/serial.mojom", IDR_SERIAL_MOJOM_JS);
- env()->RegisterModule("device/serial/serial_serialization.mojom",
- IDR_SERIAL_SERIALIZATION_MOJOM_JS);
service_provider()->AddService<device::serial::SerialService>(base::Bind(
&SerialApiTest::CreateSerialService, base::Unretained(this)));
service_provider()->IgnoreServiceRequests<KeepAlive>();
« no previous file with comments | « extensions/renderer/api/serial/data_sender_unittest.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698