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

Side by Side Diff: mojo/public/bindings/js/test/run_js_tests.cc

Issue 68323004: Port Mojo's sample_service.cc to JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/module_registry.h" 7 #include "gin/modules/module_registry.h"
8 #include "gin/test/file_runner.h" 8 #include "gin/test/file_runner.h"
9 #include "gin/test/gtest.h" 9 #include "gin/test/gtest.h"
10 #include "mojo/public/bindings/js/core.h" 10 #include "mojo/public/bindings/js/core.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // TODO(abarth): Should we autogenerate these stubs from GYP? 39 // TODO(abarth): Should we autogenerate these stubs from GYP?
40 TEST(JSTest, core) { 40 TEST(JSTest, core) {
41 RunTest("core_unittests.js"); 41 RunTest("core_unittests.js");
42 } 42 }
43 43
44 TEST(JSTest, codec) { 44 TEST(JSTest, codec) {
45 RunTest("codec_unittests.js"); 45 RunTest("codec_unittests.js");
46 } 46 }
47 47
48 TEST(JSTest, sample_test) {
49 base::FilePath path;
50 PathService::Get(base::DIR_SOURCE_ROOT, &path);
51 path = path.AppendASCII("mojo")
52 .AppendASCII("public")
53 .AppendASCII("bindings")
54 .AppendASCII("sample")
55 .AppendASCII("sample_test.js");
56 TestRunnerDelegate delegate;
57 gin::RunTestFromFile(path, &delegate);
58 }
59
48 } // namespace 60 } // namespace
49 } // namespace js 61 } // namespace js
50 } // namespace mojo 62 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698