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

Unified Diff: mojo/shell/shell_test_base.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/out_of_process_dynamic_service_runner.cc ('k') | mojo/shell/shell_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_test_base.h
diff --git a/mojo/shell/shell_test_base.h b/mojo/shell/shell_test_base.h
deleted file mode 100644
index fd70c2dec589237d1c3add560fed18852a6c5f2e..0000000000000000000000000000000000000000
--- a/mojo/shell/shell_test_base.h
+++ /dev/null
@@ -1,67 +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_BASE_H_
-#define MOJO_SHELL_SHELL_TEST_BASE_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
-#include "mojo/public/cpp/system/core.h"
-#include "mojo/shell/context.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class GURL;
-
-namespace mojo {
-namespace shell {
-namespace test {
-
-class ShellTestBase : public testing::Test {
- public:
- ShellTestBase();
- ~ShellTestBase() override;
-
- void SetUp() override;
-
- // |application_url| should typically be a mojo: URL (the origin will be set
- // to an "appropriate" file: URL).
- // TODO(tim): Should the test base be a ServiceProvider?
- ScopedMessagePipeHandle ConnectToService(
- const GURL& application_url,
- const std::string& service_name);
-
- ScopedMessagePipeHandle ConnectToServiceViaNetwork(
- const GURL& application_url,
- const std::string& service_name);
-
- template <typename Interface>
- void ConnectToService(const GURL& application_url,
- InterfacePtr<Interface>* ptr) {
- ptr->Bind(ConnectToService(application_url, Interface::Name_).Pass());
- }
-
- template <typename Interface>
- void ConnectToServiceViaNetwork(const GURL& application_url,
- InterfacePtr<Interface>* ptr) {
- ptr->Bind(
- ConnectToServiceViaNetwork(application_url, Interface::Name_).Pass());
- }
-
- base::MessageLoop* message_loop() { return &message_loop_; }
- Context* shell_context() { return &shell_context_; }
-
- private:
- Context shell_context_;
- base::MessageLoop message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellTestBase);
-};
-
-} // namespace test
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_SHELL_TEST_BASE_H_
« no previous file with comments | « mojo/shell/out_of_process_dynamic_service_runner.cc ('k') | mojo/shell/shell_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698