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

Unified Diff: mojo/shell/shell_test_helper.cc

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/shell_test_helper.h ('k') | mojo/shell/shell_test_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_test_helper.cc
diff --git a/mojo/shell/shell_test_helper.cc b/mojo/shell/shell_test_helper.cc
deleted file mode 100644
index 6c3490e49df01adf9819c8f6fe164ccd93ec3d15..0000000000000000000000000000000000000000
--- a/mojo/shell/shell_test_helper.cc
+++ /dev/null
@@ -1,41 +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_helper.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 "mojo/shell/filename_util.h"
-#include "mojo/shell/init.h"
-
-namespace mojo {
-namespace shell {
-
-ShellTestHelper::ShellTestHelper() {
- base::CommandLine::Init(0, NULL);
- mojo::shell::InitializeLogging();
-}
-
-ShellTestHelper::~ShellTestHelper() {
-}
-
-void ShellTestHelper::Init() {
- context_.Init();
- test_api_.reset(
- new ApplicationManager::TestAPI(context_.application_manager()));
- base::FilePath service_dir;
- CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
- context_.mojo_url_resolver()->SetBaseURL(FilePathToFileURL(service_dir));
-}
-
-void ShellTestHelper::SetLoaderForURL(scoped_ptr<ApplicationLoader> loader,
- const GURL& url) {
- context_.application_manager()->SetLoaderForURL(loader.Pass(), url);
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/shell_test_helper.h ('k') | mojo/shell/shell_test_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698