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

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.cc

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests Created 3 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "chrome/browser/ui/app_list/test/fake_profile.h" 6 #include "chrome/browser/ui/app_list/test/fake_profile.h"
7 7
8 FakeProfile::FakeProfile(const std::string& name) 8 FakeProfile::FakeProfile(const std::string& name)
9 : name_(name) { 9 : name_(name) {
10 BrowserContext::Initialize(this, base::FilePath()); 10 BrowserContext::Initialize(this, base::FilePath());
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 content::SSLHostStateDelegate* FakeProfile::GetSSLHostStateDelegate() { 60 content::SSLHostStateDelegate* FakeProfile::GetSSLHostStateDelegate() {
61 return nullptr; 61 return nullptr;
62 } 62 }
63 63
64 content::PermissionManager* FakeProfile::GetPermissionManager() { 64 content::PermissionManager* FakeProfile::GetPermissionManager() {
65 return nullptr; 65 return nullptr;
66 } 66 }
67 67
68 content::BackgroundFetchClient* FakeProfile::GetBackgroundFetchClient() {
69 return nullptr;
70 }
71
68 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() { 72 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() {
69 return nullptr; 73 return nullptr;
70 } 74 }
71 75
72 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( 76 net::URLRequestContextGetter* FakeProfile::CreateRequestContext(
73 content::ProtocolHandlerMap* protocol_handlers, 77 content::ProtocolHandlerMap* protocol_handlers,
74 content::URLRequestInterceptorScopedVector request_interceptors) { 78 content::URLRequestInterceptorScopedVector request_interceptors) {
75 return nullptr; 79 return nullptr;
76 } 80 }
77 81
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { 202 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
199 return false; 203 return false;
200 } 204 }
201 205
202 void FakeProfile::SetExitType(ExitType exit_type) { 206 void FakeProfile::SetExitType(ExitType exit_type) {
203 } 207 }
204 208
205 Profile::ExitType FakeProfile::GetLastSessionExitType() { 209 Profile::ExitType FakeProfile::GetLastSessionExitType() {
206 return EXIT_NORMAL; 210 return EXIT_NORMAL;
207 } 211 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698