summaryrefslogtreecommitdiffstats
path: root/mojo/apps/js/test
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 18:07:14 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 18:07:14 +0000
commit6d6e964cec6f95bd8143a17b509969467ee6b69b (patch)
treed34a0c6da658d3c8d4bd97a193afb6a14d8d6249 /mojo/apps/js/test
parent8a200ffbd7ae0a30d60284bb44b5d4153ea1830e (diff)
downloadchromium_src-6d6e964cec6f95bd8143a17b509969467ee6b69b.zip
chromium_src-6d6e964cec6f95bd8143a17b509969467ee6b69b.tar.gz
chromium_src-6d6e964cec6f95bd8143a17b509969467ee6b69b.tar.bz2
Mojo: add javascript bindings for request/response
If a mojom interface method specifies response parameters, then we'll generate javascript bindings that provide an additional callback parameter used to pass the response parameters. This mirrors the C++ implementation. A future improvement will likely be to use promises instead, especially now that they are enabled on trunk. As part of this CL, connector.js was also made consistent with connector.cc. It starts reading the message pipe immediately, handles write failures in a similar fashion, etc. The Connection type from connector.js is factored out into a separate file as it now holds a Router object. router.js mirrors router.cc. The Connection type is really the mirror of the C++ RemotePtr<S> type. Some basic request/response tests were added to connection_unittests.js. We'll probably want more testing. R=abarth@chromium.org, mpcomplete@chromium.org Review URL: https://codereview.chromium.org/207503004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/apps/js/test')
-rw-r--r--mojo/apps/js/test/run_apps_js_tests.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/mojo/apps/js/test/run_apps_js_tests.cc b/mojo/apps/js/test/run_apps_js_tests.cc
index 3427ca4..ade8c26 100644
--- a/mojo/apps/js/test/run_apps_js_tests.cc
+++ b/mojo/apps/js/test/run_apps_js_tests.cc
@@ -60,12 +60,12 @@ TEST(JSTest, MAYBE_sample_test) {
// http://crbug.com/351214
#if defined(OS_POSIX)
-#define MAYBE_connector DISABLED_connector
+#define MAYBE_connection DISABLED_connection
#else
-#define MAYBE_connector connector
+#define MAYBE_connection connection
#endif
-TEST(JSTest, MAYBE_connector) {
- RunTest("connector_unittests.js", true);
+TEST(JSTest, MAYBE_connection) {
+ RunTest("connection_unittests.js", true);
}
TEST(JSTest, monotonic_clock) {