Index: components/offline_pages/content/background_loader/background_loader_contents_stub.h |
diff --git a/components/offline_pages/content/background_loader/background_loader_contents_stub.h b/components/offline_pages/content/background_loader/background_loader_contents_stub.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a0e41e2dc125052e60714c31ef3d9b4e9b7bb85 |
--- /dev/null |
+++ b/components/offline_pages/content/background_loader/background_loader_contents_stub.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CONTENTS_STUB_H_ |
+#define COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CONTENTS_STUB_H_ |
+ |
+#include "components/offline_pages/content/background_loader/background_loader_contents.h" |
+ |
+namespace background_loader { |
+ |
+// Stub BackgroundLoaderContents for testing use. |
+class BackgroundLoaderContentsStub : public BackgroundLoaderContents { |
+ public: |
+ BackgroundLoaderContentsStub(); |
+ ~BackgroundLoaderContentsStub() override; |
+ |
+ void LoadPage(const GURL& url) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(BackgroundLoaderContentsStub); |
+}; |
+ |
+} // namespace background_loader |
+#endif // COMPONENTS_OFFLINE_PAGES_CONTENT_BACKGROUND_LOADER_BACKGROUND_LOADER_CONTENTS_STUB_H_ |