OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "gin/modules/console.h" | 7 #include "gin/modules/console.h" |
8 #include "gin/modules/module_registry.h" | 8 #include "gin/modules/module_registry.h" |
9 #include "gin/modules/timer.h" | 9 #include "gin/modules/timer.h" |
10 #include "gin/test/file_runner.h" | 10 #include "gin/test/file_runner.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 path = path.AppendASCII("mojo") | 39 path = path.AppendASCII("mojo") |
40 .AppendASCII("apps") | 40 .AppendASCII("apps") |
41 .AppendASCII("js") | 41 .AppendASCII("js") |
42 .AppendASCII("bindings") | 42 .AppendASCII("bindings") |
43 .AppendASCII(test); | 43 .AppendASCII(test); |
44 TestRunnerDelegate delegate; | 44 TestRunnerDelegate delegate; |
45 gin::RunTestFromFile(path, &delegate, run_until_idle); | 45 gin::RunTestFromFile(path, &delegate, run_until_idle); |
46 } | 46 } |
47 | 47 |
48 // TODO(abarth): Should we autogenerate these stubs from GYP? | 48 // TODO(abarth): Should we autogenerate these stubs from GYP? |
49 TEST(JSTest, core) { | |
50 RunTest("core_unittests.js", true); | |
51 } | |
52 | |
53 TEST(JSTest, codec) { | |
54 RunTest("codec_unittests.js", true); | |
55 } | |
56 | |
57 TEST(JSTest, sample_test) { | 49 TEST(JSTest, sample_test) { |
58 RunTest("sample_service_unittests.js", true); | 50 RunTest("sample_service_unittests.js", true); |
59 } | 51 } |
60 | 52 |
61 TEST(JSTest, connector) { | 53 TEST(JSTest, connector) { |
62 RunTest("connector_unittests.js", true); | 54 RunTest("connector_unittests.js", true); |
63 } | 55 } |
64 | 56 |
65 TEST(JSTest, monotonic_clock) { | 57 TEST(JSTest, monotonic_clock) { |
66 RunTest("monotonic_clock_unittests.js", false); | 58 RunTest("monotonic_clock_unittests.js", false); |
67 } | 59 } |
68 | 60 |
69 } // namespace | 61 } // namespace |
70 } // namespace js | 62 } // namespace js |
71 } // namespace mojo | 63 } // namespace mojo |
OLD | NEW |