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

Unified Diff: services/js/modules/clock/test/run_clock_tests.cc

Issue 703023004: Move the JS content handler et al from mojo/apps/js to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed DEPS gl build Created 6 years, 1 month 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 | « services/js/modules/clock/test/BUILD.gn ('k') | services/js/modules/gl/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/modules/clock/test/run_clock_tests.cc
diff --git a/mojo/apps/js/test/run_apps_js_tests.cc b/services/js/modules/clock/test/run_clock_tests.cc
similarity index 79%
rename from mojo/apps/js/test/run_apps_js_tests.cc
rename to services/js/modules/clock/test/run_clock_tests.cc
index 5d599a53cd7e9432a17006f31b9321591b87627f..7088822518460be52e11e32adc1b6ee4d32f7015 100644
--- a/mojo/apps/js/test/run_apps_js_tests.cc
+++ b/services/js/modules/clock/test/run_clock_tests.cc
@@ -9,8 +9,9 @@
#include "gin/modules/timer.h"
#include "gin/test/file_runner.h"
#include "gin/test/gtest.h"
-#include "mojo/apps/js/bindings/monotonic_clock.h"
#include "mojo/edk/js/core.h"
+#include "mojo/edk/js/threading.h"
+#include "services/js/modules/clock/monotonic_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -23,8 +24,8 @@ class TestRunnerDelegate : public gin::FileRunnerDelegate {
AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule);
AddBuiltinModule(Core::kModuleName, Core::GetModule);
AddBuiltinModule(gin::TimerModule::kName, gin::TimerModule::GetModule);
- AddBuiltinModule(apps::MonotonicClock::kModuleName,
- apps::MonotonicClock::GetModule);
+ AddBuiltinModule(MonotonicClock::kModuleName, MonotonicClock::GetModule);
+ AddBuiltinModule(Threading::kModuleName, Threading::GetModule);
}
private:
@@ -34,10 +35,10 @@ class TestRunnerDelegate : public gin::FileRunnerDelegate {
void RunTest(std::string test, bool run_until_idle) {
base::FilePath path;
PathService::Get(base::DIR_SOURCE_ROOT, &path);
- path = path.AppendASCII("mojo")
- .AppendASCII("apps")
+ path = path.AppendASCII("services")
.AppendASCII("js")
- .AppendASCII("bindings")
+ .AppendASCII("modules")
+ .AppendASCII("clock")
.AppendASCII(test);
TestRunnerDelegate delegate;
gin::RunTestFromFile(path, &delegate, run_until_idle);
« no previous file with comments | « services/js/modules/clock/test/BUILD.gn ('k') | services/js/modules/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698