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

Unified Diff: mojo/edk/js/tests/run_js_unittests.cc

Issue 2645873003: Cleanup mojo-js tests. (Closed)
Patch Set: fixes isolate_map Created 3 years, 11 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: mojo/edk/js/tests/run_js_unittests.cc
diff --git a/mojo/edk/js/test/run_js_tests.cc b/mojo/edk/js/tests/run_js_unittests.cc
similarity index 81%
rename from mojo/edk/js/test/run_js_tests.cc
rename to mojo/edk/js/tests/run_js_unittests.cc
index d0e8edcbb20c8439e99e76ff38c6d2fc310b9e39..9ce1d9de9ad17cd1e6363c4f472a97e12cc93d11 100644
--- a/mojo/edk/js/test/run_js_tests.cc
+++ b/mojo/edk/js/tests/run_js_unittests.cc
@@ -11,6 +11,7 @@
#include "gin/test/gtest.h"
#include "mojo/edk/js/core.h"
#include "mojo/edk/js/support.h"
+#include "mojo/edk/js/threading.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -23,6 +24,7 @@ class TestRunnerDelegate : public gin::FileRunnerDelegate {
TestRunnerDelegate() {
AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule);
AddBuiltinModule(Core::kModuleName, Core::GetModule);
+ AddBuiltinModule(Threading::kModuleName, Threading::GetModule);
AddBuiltinModule(Support::kModuleName, Support::GetModule);
}
@@ -62,6 +64,22 @@ TEST(JSTest, validation) {
RunTest("validation_unittests.js", true);
}
+TEST(JSTest, Binding) {
+ RunTest("binding_tests.js", false);
+}
+
+TEST(JSTest, InterfacePtr) {
+ RunTest("interface_ptr_tests.js", false);
+}
+
+TEST(JSTest, Connection) {
+ RunTest("connection_tests.js", false);
+}
+
+TEST(JSTest, SampleService) {
+ RunTest("sample_service_tests.js", false);
+}
+
} // namespace
} // namespace js
} // namespace edk

Powered by Google App Engine
This is Rietveld 408576698