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

Unified Diff: mojo/shell/fetcher/data_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/data_fetcher.cc ('k') | mojo/shell/fetcher/local_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/fetcher/data_fetcher_unittest.cc
diff --git a/mojo/fetcher/data_fetcher_unittest.cc b/mojo/shell/fetcher/data_fetcher_unittest.cc
similarity index 91%
rename from mojo/fetcher/data_fetcher_unittest.cc
rename to mojo/shell/fetcher/data_fetcher_unittest.cc
index 191b4ea57c6cc6d663f3c3965c95a187f92a9802..7974b0280795c0100c54a9a0c8db98fe71f11d2f 100644
--- a/mojo/fetcher/data_fetcher_unittest.cc
+++ b/mojo/shell/fetcher/data_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/data_fetcher.h"
+#include "mojo/shell/fetcher/data_fetcher.h"
#include <stdint.h>
@@ -19,7 +19,7 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
-namespace fetcher {
+namespace shell {
namespace {
class FetchCallbackHelper {
@@ -27,7 +27,7 @@ class FetchCallbackHelper {
FetchCallbackHelper() : run_loop_(nullptr) {}
~FetchCallbackHelper() {}
- shell::Fetcher::FetchCallback GetCallback() {
+ Fetcher::FetchCallback GetCallback() {
return base::Bind(&FetchCallbackHelper::CallbackHandler,
base::Unretained(this));
}
@@ -38,10 +38,10 @@ class FetchCallbackHelper {
run_loop.Run();
}
- shell::Fetcher* fetcher() const { return fetcher_.get(); }
+ Fetcher* fetcher() const { return fetcher_.get(); }
private:
- void CallbackHandler(scoped_ptr<shell::Fetcher> fetcher) {
+ void CallbackHandler(scoped_ptr<Fetcher> fetcher) {
fetcher_ = std::move(fetcher);
if (run_loop_)
run_loop_->Quit();
@@ -50,7 +50,7 @@ class FetchCallbackHelper {
// If it is not null, it points to a stack-allocated base::RunLoop instance in
// WaitForCallback().
base::RunLoop* run_loop_;
- scoped_ptr<shell::Fetcher> fetcher_;
+ scoped_ptr<Fetcher> fetcher_;
DISALLOW_COPY_AND_ASSIGN(FetchCallbackHelper);
};
@@ -115,5 +115,5 @@ TEST_F(DataFetcherTest, BasicFailure) {
}
} // namespace
-} // namespace fetcher
+} // namespace shell
} // namespace mojo
« no previous file with comments | « mojo/shell/fetcher/data_fetcher.cc ('k') | mojo/shell/fetcher/local_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698