OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/download/download_manager_impl.h" | 5 #include "content/browser/download/download_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 MOCK_METHOD1(CreateZoomLevelDelegateMock, | 312 MOCK_METHOD1(CreateZoomLevelDelegateMock, |
313 ZoomLevelDelegate*(const base::FilePath&)); | 313 ZoomLevelDelegate*(const base::FilePath&)); |
314 MOCK_CONST_METHOD0(IsOffTheRecord, bool()); | 314 MOCK_CONST_METHOD0(IsOffTheRecord, bool()); |
315 MOCK_METHOD0(GetResourceContext, ResourceContext*()); | 315 MOCK_METHOD0(GetResourceContext, ResourceContext*()); |
316 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); | 316 MOCK_METHOD0(GetDownloadManagerDelegate, DownloadManagerDelegate*()); |
317 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); | 317 MOCK_METHOD0(GetGuestManager, BrowserPluginGuestManager* ()); |
318 MOCK_METHOD0(GetSpecialStoragePolicy, storage::SpecialStoragePolicy*()); | 318 MOCK_METHOD0(GetSpecialStoragePolicy, storage::SpecialStoragePolicy*()); |
319 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); | 319 MOCK_METHOD0(GetPushMessagingService, PushMessagingService*()); |
320 MOCK_METHOD0(GetSSLHostStateDelegate, SSLHostStateDelegate*()); | 320 MOCK_METHOD0(GetSSLHostStateDelegate, SSLHostStateDelegate*()); |
321 MOCK_METHOD0(GetPermissionManager, PermissionManager*()); | 321 MOCK_METHOD0(GetPermissionManager, PermissionManager*()); |
| 322 MOCK_METHOD0(GetBackgroundFetchClient, BackgroundFetchClient*()); |
322 MOCK_METHOD0(GetBackgroundSyncController, BackgroundSyncController*()); | 323 MOCK_METHOD0(GetBackgroundSyncController, BackgroundSyncController*()); |
323 MOCK_METHOD0(CreateMediaRequestContext, | 324 MOCK_METHOD0(CreateMediaRequestContext, |
324 net::URLRequestContextGetter*()); | 325 net::URLRequestContextGetter*()); |
325 MOCK_METHOD2(CreateMediaRequestContextForStoragePartition, | 326 MOCK_METHOD2(CreateMediaRequestContextForStoragePartition, |
326 net::URLRequestContextGetter*( | 327 net::URLRequestContextGetter*( |
327 const base::FilePath& partition_path, bool in_memory)); | 328 const base::FilePath& partition_path, bool in_memory)); |
328 | 329 |
329 // Define these two methods to avoid a | 330 // Define these two methods to avoid a |
330 // 'cannot access private member declared in class | 331 // 'cannot access private member declared in class |
331 // URLRequestInterceptorScopedVector' | 332 // URLRequestInterceptorScopedVector' |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 EXPECT_CALL(GetMockDownloadItem(1), Remove()).Times(0); | 642 EXPECT_CALL(GetMockDownloadItem(1), Remove()).Times(0); |
642 | 643 |
643 base::Callback<bool(const GURL&)> url_filter = | 644 base::Callback<bool(const GURL&)> url_filter = |
644 GetSingleURLFilter(download_urls_[0]); | 645 GetSingleURLFilter(download_urls_[0]); |
645 int remove_count = download_manager_->RemoveDownloadsByURLAndTime( | 646 int remove_count = download_manager_->RemoveDownloadsByURLAndTime( |
646 url_filter, base::Time(), base::Time::Max()); | 647 url_filter, base::Time(), base::Time::Max()); |
647 EXPECT_EQ(remove_count, 1); | 648 EXPECT_EQ(remove_count, 1); |
648 } | 649 } |
649 | 650 |
650 } // namespace content | 651 } // namespace content |
OLD | NEW |