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

Unified Diff: components/offline_pages/stub_offline_page_model.h

Issue 2322793003: [Offline Pages] Fix flaky test due to actual loading of database. (Closed)
Patch Set: Add offline_pages:test_support as dependency. Created 4 years, 3 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 | « components/offline_pages/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/stub_offline_page_model.h
diff --git a/components/offline_pages/stub_offline_page_model.h b/components/offline_pages/stub_offline_page_model.h
index c08d46a539a8c013665ffe2cec331ad5c1511387..ce976ddead653fd7be12da8e6966c633a04f381a 100644
--- a/components/offline_pages/stub_offline_page_model.h
+++ b/components/offline_pages/stub_offline_page_model.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "components/keyed_service/core/keyed_service.h"
#include "components/offline_pages/offline_page_model.h"
namespace offline_pages {
@@ -16,7 +17,7 @@ namespace offline_pages {
// Stub implementation of OfflinePageModel interface for testing. Besides using
// as a stub for tests, it may also be subclassed to mock specific methods
// needed for a set of tests.
-class StubOfflinePageModel : public OfflinePageModel {
+class StubOfflinePageModel : public OfflinePageModel, public KeyedService {
public:
StubOfflinePageModel();
~StubOfflinePageModel() override;
« no previous file with comments | « components/offline_pages/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698