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

Side by Side Diff: services/js/test/js_application_test_base.cc

Issue 780213002: Put code in //services/js in namespace js (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 "services/js/test/js_application_test_base.h" 5 #include "services/js/test/js_application_test_base.h"
6 6
7 namespace mojo { 7 namespace js {
8 namespace test { 8 namespace test {
9 9
10 JSApplicationTestBase::JSApplicationTestBase() {} 10 JSApplicationTestBase::JSApplicationTestBase() {}
11 JSApplicationTestBase::~JSApplicationTestBase() {} 11 JSApplicationTestBase::~JSApplicationTestBase() {}
12 12
13 const std::string JSApplicationTestBase::JSAppURL(const std::string& filename) { 13 const std::string JSApplicationTestBase::JSAppURL(const std::string& filename) {
14 base::FilePath path; 14 base::FilePath path;
15 PathService::Get(base::DIR_SOURCE_ROOT, &path); 15 PathService::Get(base::DIR_SOURCE_ROOT, &path);
16 path = path.AppendASCII("services") 16 path = path.AppendASCII("services")
17 .AppendASCII("js") 17 .AppendASCII("js")
18 .AppendASCII("test") 18 .AppendASCII("test")
19 .AppendASCII(filename); 19 .AppendASCII(filename);
20 return "file://" + path.AsUTF8Unsafe(); 20 return "file://" + path.AsUTF8Unsafe();
21 } 21 }
22 22
23 } // namespace test 23 } // namespace test
24 } // namespace mojo 24 } // namespace mojo
25 25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698