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

Unified Diff: third_party/mojo/src/mojo/public/js/validation_unittests.js

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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 | « third_party/mojo/src/mojo/public/js/connection.js ('k') | third_party/mojo/src/mojo/public/mojo.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/public/js/validation_unittests.js
diff --git a/third_party/mojo/src/mojo/public/js/validation_unittests.js b/third_party/mojo/src/mojo/public/js/validation_unittests.js
index 05988f37978d8e8e9a1920835f167d7eec5704de..8a1f385f4518403b7c8ac7cad64d1571f9b6ad57 100644
--- a/third_party/mojo/src/mojo/public/js/validation_unittests.js
+++ b/third_party/mojo/src/mojo/public/js/validation_unittests.js
@@ -254,8 +254,8 @@ define([
testInterface.ConformanceTestInterface.validateRequest]);
}
- function testIntegratedMessageValidation() {
- var testFiles = getMessageTestFiles("integration_");
+ function testIntegratedMessageValidation(testFilesPattern) {
+ var testFiles = getMessageTestFiles(testFilesPattern);
expect(testFiles.length).toBeGreaterThan(0);
for (var i = 0; i < testFiles.length; i++) {
@@ -279,8 +279,8 @@ define([
var testConnection = new connection.TestConnection(
testMessagePipe.handle1,
- testInterface.IntegrationTestInterface1.stubClass,
- testInterface.IntegrationTestInterface2.proxyClass);
+ testInterface.IntegrationTestInterface.stubClass,
+ testInterface.IntegrationTestInterface.proxyClass);
var validationError = noError;
testConnection.router_.validationErrorHandler = function(err) {
@@ -295,8 +295,22 @@ define([
}
}
+ function testIntegratedMessageHeaderValidation() {
+ testIntegratedMessageValidation("integration_msghdr");
+ }
+
+ function testIntegratedRequestMessageValidation() {
+ testIntegratedMessageValidation("integration_intf_rqst");
+ }
+
+ function testIntegratedResponseMessageValidation() {
+ testIntegratedMessageValidation("integration_intf_resp");
+ }
+
expect(checkTestMessageParser()).toBeNull();
testConformanceMessageValidation();
- testIntegratedMessageValidation();
+ testIntegratedMessageHeaderValidation();
+ testIntegratedResponseMessageValidation();
+ testIntegratedRequestMessageValidation();
this.result = "PASS";
});
« no previous file with comments | « third_party/mojo/src/mojo/public/js/connection.js ('k') | third_party/mojo/src/mojo/public/mojo.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698