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

Unified Diff: mojo/shell/fetcher/about_fetcher_unittest.cc

Issue 1563413002: Move fetchers into mojo/shell/fetcher (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
« no previous file with comments | « mojo/shell/fetcher/about_fetcher.cc ('k') | mojo/shell/fetcher/data_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/fetcher/about_fetcher_unittest.cc
diff --git a/mojo/fetcher/about_fetcher_unittest.cc b/mojo/shell/fetcher/about_fetcher_unittest.cc
similarity index 92%
rename from mojo/fetcher/about_fetcher_unittest.cc
rename to mojo/shell/fetcher/about_fetcher_unittest.cc
index e0d96b60bba2ca03fad54de1ed8c2fb68106a77f..907462cfd29d16bcd0995f2c46920a031952b035 100644
--- a/mojo/fetcher/about_fetcher_unittest.cc
+++ b/mojo/shell/fetcher/about_fetcher_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/fetcher/about_fetcher.h"
+#include "mojo/shell/fetcher/about_fetcher.h"
#include <stddef.h>
@@ -27,7 +27,7 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
-namespace fetcher {
+namespace shell {
namespace {
class TestContentHandler : public ApplicationDelegate,
@@ -77,7 +77,7 @@ class TestContentHandler : public ApplicationDelegate,
DISALLOW_COPY_AND_ASSIGN(TestContentHandler);
};
-class TestLoader : public shell::ApplicationLoader {
+class TestLoader : public ApplicationLoader {
public:
explicit TestLoader(ApplicationDelegate* delegate) : delegate_(delegate) {}
~TestLoader() override {}
@@ -117,8 +117,8 @@ class AboutFetcherTest : public testing::Test {
service_provider.set_connection_error_handler(
[&run_loop]() { run_loop.Quit(); });
- scoped_ptr<shell::ConnectToApplicationParams> params(
- new shell::ConnectToApplicationParams);
+ scoped_ptr<ConnectToApplicationParams> params(
+ new ConnectToApplicationParams);
params->SetTargetURL(GURL(url));
params->set_services(std::move(service_provider_request));
application_manager_->ConnectToApplication(std::move(params));
@@ -130,12 +130,12 @@ class AboutFetcherTest : public testing::Test {
void SetUp() override {
base::FilePath shell_dir;
PathService::Get(base::DIR_MODULE, &shell_dir);
- scoped_ptr<shell::PackageManagerImpl> package_manager(
- new shell::PackageManagerImpl(shell_dir, nullptr));
+ scoped_ptr<PackageManagerImpl> package_manager(
+ new PackageManagerImpl(shell_dir, nullptr));
package_manager->RegisterContentHandler(
"text/html", GURL("test:html_content_handler"));
application_manager_.reset(
- new shell::ApplicationManager(std::move(package_manager)));
+ new ApplicationManager(std::move(package_manager)));
application_manager_->SetLoaderForURL(
make_scoped_ptr(new TestLoader(&html_content_handler_)),
GURL("test:html_content_handler"));
@@ -147,7 +147,7 @@ class AboutFetcherTest : public testing::Test {
base::ShadowingAtExitManager at_exit_;
TestContentHandler html_content_handler_;
base::MessageLoop loop_;
- scoped_ptr<shell::ApplicationManager> application_manager_;
+ scoped_ptr<ApplicationManager> application_manager_;
DISALLOW_COPY_AND_ASSIGN(AboutFetcherTest);
};
@@ -177,5 +177,5 @@ TEST_F(AboutFetcherTest, UnrecognizedURL) {
}
} // namespace
-} // namespace fetcher
+} // namespace shell
} // namespace mojo
« no previous file with comments | « mojo/shell/fetcher/about_fetcher.cc ('k') | mojo/shell/fetcher/data_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698