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

Unified Diff: mojo/shell/shell_test_base.cc

Issue 775343004: Move //mojo/shell to //shell (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/shell_test_base.h ('k') | mojo/shell/shell_test_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_test_base.cc
diff --git a/mojo/shell/shell_test_base.cc b/mojo/shell/shell_test_base.cc
deleted file mode 100644
index b9bb7e072e117fa844c6771944694a1edfdbb1ad..0000000000000000000000000000000000000000
--- a/mojo/shell/shell_test_base.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/shell/shell_test_base.h"
-
-#include "base/command_line.h"
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/logging.h"
-#include "base/path_service.h"
-#include "build/build_config.h"
-#include "mojo/shell/filename_util.h"
-#include "url/gurl.h"
-
-namespace mojo {
-namespace shell {
-namespace test {
-
-ShellTestBase::ShellTestBase() {
-}
-
-ShellTestBase::~ShellTestBase() {
-}
-
-void ShellTestBase::SetUp() {
- shell_context_.Init();
- base::FilePath service_dir;
- CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
-}
-
-ScopedMessagePipeHandle ShellTestBase::ConnectToService(
- const GURL& application_url,
- const std::string& service_name) {
- // Set the MojoURLResolver origin to be the same as the base file path for
- // local files. This is primarily for test convenience, so that references
- // to unknown mojo: urls that do not have specific local file or custom
- // mappings registered on the URL resolver are treated as shared libraries.
- base::FilePath service_dir;
- CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
- shell_context_.mojo_url_resolver()->SetBaseURL(
- FilePathToFileURL(service_dir));
-
- return shell_context_.ConnectToServiceByName(
- application_url, service_name).Pass();
-}
-
-ScopedMessagePipeHandle ShellTestBase::ConnectToServiceViaNetwork(
- const GURL& application_url,
- const std::string& service_name) {
- return shell_context_.ConnectToServiceByName(
- application_url, service_name).Pass();
-}
-
-} // namespace test
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/shell_test_base.h ('k') | mojo/shell/shell_test_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698