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

Unified Diff: mojo/public/js/bindings/tests/run_js_tests.cc

Issue 551293004: Mojo JS validation unit test should check Connection et al (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/public/js/bindings/tests/run_js_tests.cc
diff --git a/mojo/public/js/bindings/tests/run_js_tests.cc b/mojo/public/js/bindings/tests/run_js_tests.cc
index d791e0b8474744023d767d9ecbf60d72434095bf..41fa1116450432ec327cd0950671359c407ae9e4 100644
--- a/mojo/public/js/bindings/tests/run_js_tests.cc
+++ b/mojo/public/js/bindings/tests/run_js_tests.cc
@@ -10,6 +10,8 @@
#include "gin/test/file_runner.h"
#include "gin/test/gtest.h"
#include "mojo/bindings/js/core.h"
+#include "mojo/bindings/js/support.h"
+#include "mojo/public/cpp/environment/environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -21,6 +23,7 @@ class TestRunnerDelegate : public gin::FileRunnerDelegate {
TestRunnerDelegate() {
AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule);
AddBuiltinModule(Core::kModuleName, Core::GetModule);
+ AddBuiltinModule(Support::kModuleName, Support::GetModule);
}
private:
@@ -28,6 +31,7 @@ class TestRunnerDelegate : public gin::FileRunnerDelegate {
};
void RunTest(std::string test, bool run_until_idle) {
+ Environment env;
base::FilePath path;
PathService::Get(base::DIR_SOURCE_ROOT, &path);
path = path.AppendASCII("mojo")

Powered by Google App Engine
This is Rietveld 408576698