| 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 22 matching lines...) Expand all Loading... |
| 33 #include "content/browser/download/download_request_handle.h" | 33 #include "content/browser/download/download_request_handle.h" |
| 34 #include "content/browser/download/mock_download_file.h" | 34 #include "content/browser/download/mock_download_file.h" |
| 35 #include "content/public/browser/browser_context.h" | 35 #include "content/public/browser/browser_context.h" |
| 36 #include "content/public/browser/download_interrupt_reasons.h" | 36 #include "content/public/browser/download_interrupt_reasons.h" |
| 37 #include "content/public/browser/download_item.h" | 37 #include "content/public/browser/download_item.h" |
| 38 #include "content/public/browser/download_manager_delegate.h" | 38 #include "content/public/browser/download_manager_delegate.h" |
| 39 #include "content/public/browser/zoom_level_delegate.h" | 39 #include "content/public/browser/zoom_level_delegate.h" |
| 40 #include "content/public/test/mock_download_item.h" | 40 #include "content/public/test/mock_download_item.h" |
| 41 #include "content/public/test/test_browser_context.h" | 41 #include "content/public/test/test_browser_context.h" |
| 42 #include "content/public/test/test_browser_thread.h" | 42 #include "content/public/test/test_browser_thread.h" |
| 43 #include "net/log/net_log.h" | 43 #include "net/log/net_log_with_source.h" |
| 44 #include "testing/gmock/include/gmock/gmock.h" | 44 #include "testing/gmock/include/gmock/gmock.h" |
| 45 #include "testing/gmock_mutant.h" | 45 #include "testing/gmock_mutant.h" |
| 46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
| 47 #include "url/origin.h" | 47 #include "url/origin.h" |
| 48 | 48 |
| 49 using ::testing::AllOf; | 49 using ::testing::AllOf; |
| 50 using ::testing::DoAll; | 50 using ::testing::DoAll; |
| 51 using ::testing::Eq; | 51 using ::testing::Eq; |
| 52 using ::testing::Ref; | 52 using ::testing::Ref; |
| 53 using ::testing::Return; | 53 using ::testing::Return; |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 EXPECT_CALL(GetMockDownloadItem(1), Remove()).Times(0); | 786 EXPECT_CALL(GetMockDownloadItem(1), Remove()).Times(0); |
| 787 | 787 |
| 788 base::Callback<bool(const GURL&)> url_filter = | 788 base::Callback<bool(const GURL&)> url_filter = |
| 789 GetSingleURLFilter(download_urls_[0]); | 789 GetSingleURLFilter(download_urls_[0]); |
| 790 int remove_count = download_manager_->RemoveDownloadsByURLAndTime( | 790 int remove_count = download_manager_->RemoveDownloadsByURLAndTime( |
| 791 url_filter, base::Time(), base::Time::Max()); | 791 url_filter, base::Time(), base::Time::Max()); |
| 792 EXPECT_EQ(remove_count, 1); | 792 EXPECT_EQ(remove_count, 1); |
| 793 } | 793 } |
| 794 | 794 |
| 795 } // namespace content | 795 } // namespace content |
| OLD | NEW |