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

Unified Diff: mojo/shell/shell_test_helper.h

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_unittest.cc ('k') | mojo/shell/shell_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_test_helper.h
diff --git a/mojo/shell/shell_test_helper.h b/mojo/shell/shell_test_helper.h
deleted file mode 100644
index 671c3cb06ede0da474daf7940f615a2c6b59d052..0000000000000000000000000000000000000000
--- a/mojo/shell/shell_test_helper.h
+++ /dev/null
@@ -1,55 +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.
-
-#ifndef MOJO_SHELL_SHELL_TEST_HELPER_
-#define MOJO_SHELL_SHELL_TEST_HELPER_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/run_loop.h"
-#include "mojo/application_manager/application_loader.h"
-#include "mojo/shell/context.h"
-
-class GURL;
-
-namespace mojo {
-
-class ApplicationLoader;
-
-namespace shell {
-
-// ShellTestHelper is useful for tests to establish a connection to the
-// ApplicationManager. Invoke Init() to establish the connection. Once done,
-// application_manager() returns the ApplicationManager.
-class ShellTestHelper {
- public:
- ShellTestHelper();
- ~ShellTestHelper();
-
- void Init();
-
- ApplicationManager* application_manager() {
- return context_.application_manager();
- }
-
- // Sets a ApplicationLoader for the specified URL. |loader| is ultimately used
- // on
- // the thread this class spawns.
- void SetLoaderForURL(scoped_ptr<ApplicationLoader> loader, const GURL& url);
-
- // Adds a mapping that is used when resolving mojo urls. See MojoURLResolver
- // for details.
- void AddCustomMapping(const GURL& mojo_url, const GURL& resolved_url);
-
- private:
- Context context_;
- base::MessageLoop shell_loop_;
- scoped_ptr<ApplicationManager::TestAPI> test_api_;
- DISALLOW_COPY_AND_ASSIGN(ShellTestHelper);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_SHELL_TEST_HELPER_
« no previous file with comments | « mojo/shell/shell_test_base_unittest.cc ('k') | mojo/shell/shell_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698