Bug 1461510 [wpt PR 11001] - Change mojo manifest interface syntax from foo::mojom::Bar to foo.mojom.Bar., a=testonly
authorRobert Sesek <rsesek@chromium.org>
Sat, 19 May 2018 20:22:01 +0000
changeset 419072 6ea57382bd997d9c7abe3630e740b86ce64eb45c
parent 419071 baaa6b51de434025db3f38e6fc27b706169b607f
child 419073 4143290a87a68d7268365fe429e48cf6aba9e52d
push id34026
push userapavel@mozilla.com
push dateMon, 21 May 2018 09:47:33 +0000
treeherdermozilla-central@dc1868d255be [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1461510, 11001, 835446, 1026419, 558841
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1461510 [wpt PR 11001] - Change mojo manifest interface syntax from foo::mojom::Bar to foo.mojom.Bar., a=testonly Automatic update from web-platform-testsChange mojo manifest interface syntax from foo::mojom::Bar to foo.mojom.Bar. This updates the bindings generators and hard-coded interface names in tests and the service_manager. The remainder of the CL was generated by: for f in $(find . -name '*.json' -not \( -path './out/*' -o -path './third_party/*' -o -path '*.xcassets/*' \)); do grep interface_provider_spec "./$f" >/dev/null && gsed -i s/::/./g "$f"; done Tbr: jam@chromium.org Bug: 835446 Change-Id: I0bb22615b9c66824c6f95da66e3d7016809d63c7 Reviewed-on: https://chromium-review.googlesource.com/1026419 Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by: Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#558841} -- wpt-commits: e7a9162535d0e65a31ba79c26542ca865df31197 wpt-pr: 11001
testing/web-platform/tests/resources/chromium/chooser_service.mojom.js
testing/web-platform/tests/resources/chromium/device.mojom.js
testing/web-platform/tests/resources/chromium/device_manager.mojom.js
testing/web-platform/tests/resources/chromium/fake_bluetooth.mojom.js
testing/web-platform/tests/resources/chromium/fake_bluetooth_chooser.mojom.js
testing/web-platform/tests/resources/chromium/mojo_layouttest_test.mojom.js
testing/web-platform/tests/resources/chromium/sensor.mojom.js
testing/web-platform/tests/resources/chromium/sensor_provider.mojom.js
--- a/testing/web-platform/tests/resources/chromium/chooser_service.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/chooser_service.mojom.js
@@ -252,22 +252,22 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var UsbChooserService = {
-    name: 'device::mojom::UsbChooserService',
+    name: 'device.mojom.UsbChooserService',
     kVersion: 0,
     ptrClass: UsbChooserServicePtr,
     proxyClass: UsbChooserServiceProxy,
     stubClass: UsbChooserServiceStub,
     validateRequest: validateUsbChooserServiceRequest,
     validateResponse: validateUsbChooserServiceResponse,
   };
   UsbChooserServiceStub.prototype.validator = validateUsbChooserServiceRequest;
   UsbChooserServiceProxy.prototype.validator = validateUsbChooserServiceResponse;
   exports.UsbChooserService = UsbChooserService;
   exports.UsbChooserServicePtr = UsbChooserServicePtr;
   exports.UsbChooserServiceAssociatedPtr = UsbChooserServiceAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/device.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/device.mojom.js
@@ -3390,17 +3390,17 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var UsbDevice = {
-    name: 'device::mojom::UsbDevice',
+    name: 'device.mojom.UsbDevice',
     kVersion: 0,
     ptrClass: UsbDevicePtr,
     proxyClass: UsbDeviceProxy,
     stubClass: UsbDeviceStub,
     validateRequest: validateUsbDeviceRequest,
     validateResponse: validateUsbDeviceResponse,
   };
   UsbDeviceStub.prototype.validator = validateUsbDeviceRequest;
@@ -3416,9 +3416,9 @@
   exports.UsbInterfaceInfo = UsbInterfaceInfo;
   exports.UsbConfigurationInfo = UsbConfigurationInfo;
   exports.UsbDeviceInfo = UsbDeviceInfo;
   exports.UsbControlTransferParams = UsbControlTransferParams;
   exports.UsbIsochronousPacket = UsbIsochronousPacket;
   exports.UsbDevice = UsbDevice;
   exports.UsbDevicePtr = UsbDevicePtr;
   exports.UsbDeviceAssociatedPtr = UsbDeviceAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/device_manager.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/device_manager.mojom.js
@@ -697,17 +697,17 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var UsbDeviceManager = {
-    name: 'device::mojom::UsbDeviceManager',
+    name: 'device.mojom.UsbDeviceManager',
     kVersion: 0,
     ptrClass: UsbDeviceManagerPtr,
     proxyClass: UsbDeviceManagerProxy,
     stubClass: UsbDeviceManagerStub,
     validateRequest: validateUsbDeviceManagerRequest,
     validateResponse: validateUsbDeviceManagerResponse,
   };
   UsbDeviceManagerStub.prototype.validator = validateUsbDeviceManagerRequest;
@@ -817,17 +817,17 @@
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   function validateUsbDeviceManagerClientResponse(messageValidator) {
     return validator.validationError.NONE;
   }
 
   var UsbDeviceManagerClient = {
-    name: 'device::mojom::UsbDeviceManagerClient',
+    name: 'device.mojom.UsbDeviceManagerClient',
     kVersion: 0,
     ptrClass: UsbDeviceManagerClientPtr,
     proxyClass: UsbDeviceManagerClientProxy,
     stubClass: UsbDeviceManagerClientStub,
     validateRequest: validateUsbDeviceManagerClientRequest,
     validateResponse: null,
   };
   UsbDeviceManagerClientStub.prototype.validator = validateUsbDeviceManagerClientRequest;
@@ -835,9 +835,9 @@
   exports.UsbDeviceFilter = UsbDeviceFilter;
   exports.UsbEnumerationOptions = UsbEnumerationOptions;
   exports.UsbDeviceManager = UsbDeviceManager;
   exports.UsbDeviceManagerPtr = UsbDeviceManagerPtr;
   exports.UsbDeviceManagerAssociatedPtr = UsbDeviceManagerAssociatedPtr;
   exports.UsbDeviceManagerClient = UsbDeviceManagerClient;
   exports.UsbDeviceManagerClientPtr = UsbDeviceManagerClientPtr;
   exports.UsbDeviceManagerClientAssociatedPtr = UsbDeviceManagerClientAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/fake_bluetooth.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/fake_bluetooth.mojom.js
@@ -4056,17 +4056,17 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var FakeBluetooth = {
-    name: 'bluetooth::mojom::FakeBluetooth',
+    name: 'bluetooth.mojom.FakeBluetooth',
     kVersion: 0,
     ptrClass: FakeBluetoothPtr,
     proxyClass: FakeBluetoothProxy,
     stubClass: FakeBluetoothStub,
     validateRequest: validateFakeBluetoothRequest,
     validateResponse: validateFakeBluetoothResponse,
   };
   FakeBluetoothStub.prototype.validator = validateFakeBluetoothRequest;
@@ -5288,17 +5288,17 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var FakeCentral = {
-    name: 'bluetooth::mojom::FakeCentral',
+    name: 'bluetooth.mojom.FakeCentral',
     kVersion: 0,
     ptrClass: FakeCentralPtr,
     proxyClass: FakeCentralProxy,
     stubClass: FakeCentralStub,
     validateRequest: validateFakeCentralRequest,
     validateResponse: validateFakeCentralResponse,
   };
   FakeCentralStub.prototype.validator = validateFakeCentralRequest;
@@ -5315,9 +5315,9 @@
   exports.ScanResult = ScanResult;
   exports.CharacteristicProperties = CharacteristicProperties;
   exports.FakeBluetooth = FakeBluetooth;
   exports.FakeBluetoothPtr = FakeBluetoothPtr;
   exports.FakeBluetoothAssociatedPtr = FakeBluetoothAssociatedPtr;
   exports.FakeCentral = FakeCentral;
   exports.FakeCentralPtr = FakeCentralPtr;
   exports.FakeCentralAssociatedPtr = FakeCentralAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/fake_bluetooth_chooser.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/fake_bluetooth_chooser.mojom.js
@@ -799,24 +799,24 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var FakeBluetoothChooser = {
-    name: 'content::mojom::FakeBluetoothChooser',
+    name: 'content.mojom.FakeBluetoothChooser',
     kVersion: 0,
     ptrClass: FakeBluetoothChooserPtr,
     proxyClass: FakeBluetoothChooserProxy,
     stubClass: FakeBluetoothChooserStub,
     validateRequest: validateFakeBluetoothChooserRequest,
     validateResponse: validateFakeBluetoothChooserResponse,
   };
   FakeBluetoothChooserStub.prototype.validator = validateFakeBluetoothChooserRequest;
   FakeBluetoothChooserProxy.prototype.validator = validateFakeBluetoothChooserResponse;
   exports.ChooserEventType = ChooserEventType;
   exports.FakeBluetoothChooserEvent = FakeBluetoothChooserEvent;
   exports.FakeBluetoothChooser = FakeBluetoothChooser;
   exports.FakeBluetoothChooserPtr = FakeBluetoothChooserPtr;
   exports.FakeBluetoothChooserAssociatedPtr = FakeBluetoothChooserAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/mojo_layouttest_test.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/mojo_layouttest_test.mojom.js
@@ -243,22 +243,22 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var MojoLayoutTestHelper = {
-    name: 'content::mojom::MojoLayoutTestHelper',
+    name: 'content.mojom.MojoLayoutTestHelper',
     kVersion: 0,
     ptrClass: MojoLayoutTestHelperPtr,
     proxyClass: MojoLayoutTestHelperProxy,
     stubClass: MojoLayoutTestHelperStub,
     validateRequest: validateMojoLayoutTestHelperRequest,
     validateResponse: validateMojoLayoutTestHelperResponse,
   };
   MojoLayoutTestHelperStub.prototype.validator = validateMojoLayoutTestHelperRequest;
   MojoLayoutTestHelperProxy.prototype.validator = validateMojoLayoutTestHelperResponse;
   exports.MojoLayoutTestHelper = MojoLayoutTestHelper;
   exports.MojoLayoutTestHelperPtr = MojoLayoutTestHelperPtr;
   exports.MojoLayoutTestHelperAssociatedPtr = MojoLayoutTestHelperAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/sensor.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/sensor.mojom.js
@@ -927,17 +927,17 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var Sensor = {
-    name: 'device::mojom::Sensor',
+    name: 'device.mojom.Sensor',
     kVersion: 0,
     ptrClass: SensorPtr,
     proxyClass: SensorProxy,
     stubClass: SensorStub,
     validateRequest: validateSensorRequest,
     validateResponse: validateSensorResponse,
   };
   SensorStub.prototype.validator = validateSensorRequest;
@@ -1045,17 +1045,17 @@
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   function validateSensorClientResponse(messageValidator) {
     return validator.validationError.NONE;
   }
 
   var SensorClient = {
-    name: 'device::mojom::SensorClient',
+    name: 'device.mojom.SensorClient',
     kVersion: 0,
     ptrClass: SensorClientPtr,
     proxyClass: SensorClientProxy,
     stubClass: SensorClientStub,
     validateRequest: validateSensorClientRequest,
     validateResponse: null,
   };
   SensorClientStub.prototype.validator = validateSensorClientRequest;
@@ -1064,9 +1064,9 @@
   exports.ReportingMode = ReportingMode;
   exports.SensorConfiguration = SensorConfiguration;
   exports.Sensor = Sensor;
   exports.SensorPtr = SensorPtr;
   exports.SensorAssociatedPtr = SensorAssociatedPtr;
   exports.SensorClient = SensorClient;
   exports.SensorClientPtr = SensorClientPtr;
   exports.SensorClientAssociatedPtr = SensorClientAssociatedPtr;
-})();
\ No newline at end of file
+})();
--- a/testing/web-platform/tests/resources/chromium/sensor_provider.mojom.js
+++ b/testing/web-platform/tests/resources/chromium/sensor_provider.mojom.js
@@ -406,24 +406,24 @@
         break;
     }
     if (paramsClass === null)
       return validator.validationError.NONE;
     return paramsClass.validate(messageValidator, messageValidator.message.getHeaderNumBytes());
   }
 
   var SensorProvider = {
-    name: 'device::mojom::SensorProvider',
+    name: 'device.mojom.SensorProvider',
     kVersion: 0,
     ptrClass: SensorProviderPtr,
     proxyClass: SensorProviderProxy,
     stubClass: SensorProviderStub,
     validateRequest: validateSensorProviderRequest,
     validateResponse: validateSensorProviderResponse,
   };
   SensorProviderStub.prototype.validator = validateSensorProviderRequest;
   SensorProviderProxy.prototype.validator = validateSensorProviderResponse;
   exports.SensorCreationResult = SensorCreationResult;
   exports.SensorInitParams = SensorInitParams;
   exports.SensorProvider = SensorProvider;
   exports.SensorProviderPtr = SensorProviderPtr;
   exports.SensorProviderAssociatedPtr = SensorProviderAssociatedPtr;
-})();
\ No newline at end of file
+})();