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

Side by Side Diff: components/offline_pages/stub_offline_page_model.cc

Issue 2016313003: Adds unit tests for Offliner SavePage implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed Fake* to Stub* and added files to proper build target Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/offline_pages/stub_offline_page_model.h"
6
7 namespace offline_pages {
8
9 StubOfflinePageModel::StubOfflinePageModel() {}
10 StubOfflinePageModel::~StubOfflinePageModel() {}
11
12 void StubOfflinePageModel::AddObserver(Observer* observer) {}
13 void StubOfflinePageModel::RemoveObserver(Observer* observer) {}
14 void StubOfflinePageModel::SavePage(
15 const GURL& url,
16 const ClientId& client_id,
17 std::unique_ptr<OfflinePageArchiver> archiver,
18 const SavePageCallback& callback) {}
19 void StubOfflinePageModel::MarkPageAccessed(int64_t offline_id) {}
20 void StubOfflinePageModel::ClearAll(const base::Closure& callback) {}
21 void StubOfflinePageModel::DeletePagesByOfflineId(
22 const std::vector<int64_t>& offline_ids,
23 const DeletePageCallback& callback) {}
24 void StubOfflinePageModel::DeletePagesByURLPredicate(
25 const UrlPredicate& predicate,
26 const DeletePageCallback& callback) {}
27 void StubOfflinePageModel::HasPages(const std::string& name_space,
28 const HasPagesCallback& callback) {}
29 void StubOfflinePageModel::CheckPagesExistOffline(
30 const std::set<GURL>& urls,
31 const CheckPagesExistOfflineCallback& callback) {}
32 void StubOfflinePageModel::GetAllPages(
33 const MultipleOfflinePageItemCallback& callback) {}
34 void StubOfflinePageModel::GetOfflineIdsForClientId(
35 const ClientId& client_id,
36 const MultipleOfflineIdCallback& callback) {}
37 const std::vector<int64_t> StubOfflinePageModel::MaybeGetOfflineIdsForClientId(
38 const ClientId& client_id) const {
39 std::vector<int64_t> offline_ids;
40 return offline_ids;
41 }
42 void StubOfflinePageModel::GetPageByOfflineId(
43 int64_t offline_id,
44 const SingleOfflinePageItemCallback& callback) {}
45 const OfflinePageItem* StubOfflinePageModel::MaybeGetPageByOfflineId(
46 int64_t offline_id) const {
47 return nullptr;
48 }
49 void StubOfflinePageModel::GetPageByOfflineURL(
50 const GURL& offline_url,
51 const SingleOfflinePageItemCallback& callback) {}
52 const OfflinePageItem* StubOfflinePageModel::MaybeGetPageByOfflineURL(
53 const GURL& offline_url) const {
54 return nullptr;
55 }
56 void StubOfflinePageModel::GetPagesByOnlineURL(
57 const GURL& online_url,
58 const MultipleOfflinePageItemCallback& callback) {}
59 void StubOfflinePageModel::GetBestPageForOnlineURL(
60 const GURL& online_url,
61 const SingleOfflinePageItemCallback callback) {}
62 const OfflinePageItem* StubOfflinePageModel::MaybeGetBestPageForOnlineURL(
63 const GURL& online_url) const {
64 return nullptr;
65 }
66 void StubOfflinePageModel::CheckForExternalFileDeletion() {}
67 void StubOfflinePageModel::ExpirePages(
68 const std::vector<int64_t>& offline_ids,
69 const base::Time& expiration_time,
70 const base::Callback<void(bool)>& callback) {}
71 ClientPolicyController* StubOfflinePageModel::GetPolicyController() {
72 return nullptr;
73 }
74 bool StubOfflinePageModel::is_loaded() const {
75 return true;
76 }
77
78 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/stub_offline_page_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698