| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "gin/modules/console.h" | 8 #include "gin/modules/console.h" |
| 9 #include "gin/modules/module_registry.h" | 9 #include "gin/modules/module_registry.h" |
| 10 #include "gin/test/file_runner.h" | 10 #include "gin/test/file_runner.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 path = path.AppendASCII("mojo") | 38 path = path.AppendASCII("mojo") |
| 39 .AppendASCII("public") | 39 .AppendASCII("public") |
| 40 .AppendASCII("js") | 40 .AppendASCII("js") |
| 41 .AppendASCII("tests") | 41 .AppendASCII("tests") |
| 42 .AppendASCII(test); | 42 .AppendASCII(test); |
| 43 TestRunnerDelegate delegate; | 43 TestRunnerDelegate delegate; |
| 44 gin::RunTestFromFile(path, &delegate, run_until_idle); | 44 gin::RunTestFromFile(path, &delegate, run_until_idle); |
| 45 } | 45 } |
| 46 | 46 |
| 47 // TODO(abarth): Should we autogenerate these stubs from GYP? | 47 // TODO(abarth): Should we autogenerate these stubs from GYP? |
| 48 TEST(JSTest, Binding) { | |
| 49 RunTest("binding_unittest.js", false); | |
| 50 } | |
| 51 | |
| 52 TEST(JSTest, Codec) { | 48 TEST(JSTest, Codec) { |
| 53 RunTest("codec_unittest.js", true); | 49 RunTest("codec_unittest.js", true); |
| 54 } | 50 } |
| 55 | 51 |
| 56 TEST(JSTest, Connection) { | 52 TEST(JSTest, Connection) { |
| 57 RunTest("connection_unittest.js", false); | 53 RunTest("connection_unittest.js", false); |
| 58 } | 54 } |
| 59 | 55 |
| 60 TEST(JSTest, Core) { | 56 TEST(JSTest, Core) { |
| 61 RunTest("core_unittest.js", true); | 57 RunTest("core_unittest.js", true); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 78 } | 74 } |
| 79 | 75 |
| 80 TEST(JSTest, Validation) { | 76 TEST(JSTest, Validation) { |
| 81 RunTest("validation_unittest.js", true); | 77 RunTest("validation_unittest.js", true); |
| 82 } | 78 } |
| 83 | 79 |
| 84 } // namespace | 80 } // namespace |
| 85 } // namespace js | 81 } // namespace js |
| 86 } // namespace edk | 82 } // namespace edk |
| 87 } // namespace mojo | 83 } // namespace mojo |
| OLD | NEW |