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

Side by Side Diff: mojo/edk/js/test/run_js_tests.cc

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/js/test/run_js_integration_tests.cc ('k') | mojo/edk/js/tests/js_to_cpp_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "gin/test/gtest.h" 11 #include "gin/test/gtest.h"
12 #include "mojo/edk/js/core.h" 12 #include "mojo/edk/js/core.h"
13 #include "mojo/edk/js/support.h" 13 #include "mojo/edk/js/support.h"
14 #include "mojo/public/cpp/environment/environment.h" 14 #include "mojo/public/cpp/environment/environment.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace edk { 18 namespace edk {
19 namespace js {
19 namespace { 20 namespace {
20 21
21 class TestRunnerDelegate : public gin::FileRunnerDelegate { 22 class TestRunnerDelegate : public gin::FileRunnerDelegate {
22 public: 23 public:
23 TestRunnerDelegate() { 24 TestRunnerDelegate() {
24 AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule); 25 AddBuiltinModule(gin::Console::kModuleName, gin::Console::GetModule);
25 AddBuiltinModule(Core::kModuleName, Core::GetModule); 26 AddBuiltinModule(Core::kModuleName, Core::GetModule);
26 AddBuiltinModule(Support::kModuleName, Support::GetModule); 27 AddBuiltinModule(Support::kModuleName, Support::GetModule);
27 } 28 }
28 29
(...skipping 27 matching lines...) Expand all
56 57
57 TEST(JSTest, union) { 58 TEST(JSTest, union) {
58 RunTest("union_unittests.js", true); 59 RunTest("union_unittests.js", true);
59 } 60 }
60 61
61 TEST(JSTest, validation) { 62 TEST(JSTest, validation) {
62 RunTest("validation_unittests.js", true); 63 RunTest("validation_unittests.js", true);
63 } 64 }
64 65
65 } // namespace 66 } // namespace
67 } // namespace js
66 } // namespace edk 68 } // namespace edk
67 } // namespace mojo 69 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/js/test/run_js_integration_tests.cc ('k') | mojo/edk/js/tests/js_to_cpp_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698