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

Unified Diff: mojo/shell/application_manager_apptest_target.cc

Issue 1706833003: Move various Shell tests into a subdir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conn
Patch Set: . Created 4 years, 10 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/application_manager_apptest_manifest.json ('k') | mojo/shell/application_manager_apptests.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_manager_apptest_target.cc
diff --git a/mojo/shell/application_manager_apptest_target.cc b/mojo/shell/application_manager_apptest_target.cc
deleted file mode 100644
index 133b547af4c9bd8e635945a6cec55cba459da0e0..0000000000000000000000000000000000000000
--- a/mojo/shell/application_manager_apptest_target.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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 "base/at_exit.h"
-#include "base/command_line.h"
-#include "base/macros.h"
-#include "mojo/shell/application_manager_apptests.mojom.h"
-#include "mojo/shell/public/cpp/connection.h"
-#include "mojo/shell/public/cpp/shell.h"
-#include "mojo/shell/public/cpp/shell_client.h"
-#include "mojo/shell/runner/child/test_native_main.h"
-#include "mojo/shell/runner/init.h"
-
-using mojo::shell::test::mojom::CreateInstanceForHandleTestPtr;
-
-namespace {
-
-class TargetApplicationDelegate : public mojo::ShellClient {
- public:
- TargetApplicationDelegate() {}
- ~TargetApplicationDelegate() override {}
-
- private:
- // mojo::ShellClient:
- void Initialize(mojo::Shell* shell, const std::string& url,
- uint32_t id) override {
- CreateInstanceForHandleTestPtr service;
- shell->ConnectToInterface("mojo:mojo_shell_apptests", &service);
- service->SetTargetID(id);
- }
-
- DISALLOW_COPY_AND_ASSIGN(TargetApplicationDelegate);
-};
-
-} // namespace
-
-int main(int argc, char** argv) {
- base::AtExitManager at_exit;
- base::CommandLine::Init(argc, argv);
-
- mojo::shell::InitializeLogging();
-
- TargetApplicationDelegate delegate;
- return mojo::shell::TestNativeMain(&delegate);
-}
« no previous file with comments | « mojo/shell/application_manager_apptest_manifest.json ('k') | mojo/shell/application_manager_apptests.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698