| 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
|
|
|