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

Unified Diff: mojo/shell/standalone/android/background_application_loader_unittest.cc

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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
Index: mojo/shell/standalone/android/background_application_loader_unittest.cc
diff --git a/mojo/runner/android/background_application_loader_unittest.cc b/mojo/shell/standalone/android/background_application_loader_unittest.cc
similarity index 71%
rename from mojo/runner/android/background_application_loader_unittest.cc
rename to mojo/shell/standalone/android/background_application_loader_unittest.cc
index 7201a63e7c67661b8be572b69c0c674194596751..9f66bf131654ea0a3487684fc328a32139ac927b 100644
--- a/mojo/runner/android/background_application_loader_unittest.cc
+++ b/mojo/shell/standalone/android/background_application_loader_unittest.cc
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/runner/android/background_application_loader.h"
+#include "mojo/shell/standalone/android/background_application_loader.h"
#include "mojo/shell/public/interfaces/application.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
-namespace runner {
+namespace shell {
namespace {
-class DummyLoader : public shell::ApplicationLoader {
+class DummyLoader : public ApplicationLoader {
public:
DummyLoader() : simulate_app_quit_(true) {}
~DummyLoader() override {}
- // shell::ApplicationLoader overrides:
+ // ApplicationLoader overrides:
void Load(const GURL& url,
InterfaceRequest<Application> application_request) override {
if (simulate_app_quit_)
@@ -31,21 +31,21 @@ class DummyLoader : public shell::ApplicationLoader {
// Tests that the loader can start and stop gracefully.
TEST(BackgroundApplicationLoaderTest, StartStop) {
- scoped_ptr<shell::ApplicationLoader> real_loader(new DummyLoader());
- BackgroundApplicationLoader loader(real_loader.Pass(), "test",
+ scoped_ptr<ApplicationLoader> real_loader(new DummyLoader());
+ BackgroundApplicationLoader loader(std::move(real_loader), "test",
base::MessageLoop::TYPE_DEFAULT);
}
// Tests that the loader can load a service that is well behaved (quits
// itself).
TEST(BackgroundApplicationLoaderTest, Load) {
- scoped_ptr<shell::ApplicationLoader> real_loader(new DummyLoader());
- BackgroundApplicationLoader loader(real_loader.Pass(), "test",
+ scoped_ptr<ApplicationLoader> real_loader(new DummyLoader());
+ BackgroundApplicationLoader loader(std::move(real_loader), "test",
base::MessageLoop::TYPE_DEFAULT);
ApplicationPtr application;
loader.Load(GURL(), GetProxy(&application));
}
} // namespace
-} // namespace runner
+} // namespace shell
} // namespace mojo
« no previous file with comments | « mojo/shell/standalone/android/background_application_loader.cc ('k') | mojo/shell/standalone/android/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698