Index: components/download/internal/test/noop_store.h |
diff --git a/components/download/internal/noop_store.h b/components/download/internal/test/noop_store.h |
similarity index 65% |
rename from components/download/internal/noop_store.h |
rename to components/download/internal/test/noop_store.h |
index 4bad9ed2e13ff74bf1ec5ab9c5363f1785223b94..598e77e25911eda70f9058a80cf856feba27750d 100644 |
--- a/components/download/internal/noop_store.h |
+++ b/components/download/internal/test/noop_store.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef COMPONENTS_DOWNLOAD_INTERNAL_NOOP_STORE_H_ |
-#define COMPONENTS_DOWNLOAD_INTERNAL_NOOP_STORE_H_ |
+#ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_NOOP_STORE_H_ |
+#define COMPONENTS_DOWNLOAD_INTERNAL_TEST_NOOP_STORE_H_ |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
@@ -24,13 +24,13 @@ class NoopStore : public Store { |
// Store implementation. |
bool IsInitialized() override; |
- void Initialize(InitCallback callback) override; |
- void Destroy(StoreCallback callback) override; |
- void Update(const Entry& entry, StoreCallback callback) override; |
- void Remove(const std::string& guid, StoreCallback callback) override; |
+ void Initialize(const InitCallback& callback) override; |
+ void Destroy(const StoreCallback& callback) override; |
+ void Update(const Entry& entry, const StoreCallback& callback) override; |
+ void Remove(const std::string& guid, const StoreCallback& callback) override; |
private: |
- void OnInitFinished(InitCallback callback); |
+ void OnInitFinished(const InitCallback& callback); |
// Whether or not this Store is 'initialized.' Just gets set to |true| once |
// Initialize() is called. |
@@ -43,4 +43,4 @@ class NoopStore : public Store { |
} // namespace download |
-#endif // COMPONENTS_DOWNLOAD_INTERNAL_NOOP_STORE_H_ |
+#endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_NOOP_STORE_H_ |