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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 base::WeakPtr<MockDownloadFileFactory> mock_download_file_factory_; | 561 base::WeakPtr<MockDownloadFileFactory> mock_download_file_factory_; |
562 | 562 |
563 // Target detetermined callback. | 563 // Target detetermined callback. |
564 bool callback_called_; | 564 bool callback_called_; |
565 base::FilePath target_path_; | 565 base::FilePath target_path_; |
566 DownloadItem::TargetDisposition target_disposition_; | 566 DownloadItem::TargetDisposition target_disposition_; |
567 DownloadDangerType danger_type_; | 567 DownloadDangerType danger_type_; |
568 base::FilePath intermediate_path_; | 568 base::FilePath intermediate_path_; |
569 | 569 |
570 private: | 570 private: |
571 MessageLoopForUI message_loop_; | 571 base::MessageLoopForUI message_loop_; |
572 TestBrowserThread ui_thread_; | 572 TestBrowserThread ui_thread_; |
573 TestBrowserThread file_thread_; | 573 TestBrowserThread file_thread_; |
574 base::WeakPtr<MockDownloadItemFactory> mock_download_item_factory_; | 574 base::WeakPtr<MockDownloadItemFactory> mock_download_item_factory_; |
575 scoped_ptr<MockDownloadManagerDelegate> mock_download_manager_delegate_; | 575 scoped_ptr<MockDownloadManagerDelegate> mock_download_manager_delegate_; |
576 scoped_ptr<MockBrowserContext> mock_browser_context_; | 576 scoped_ptr<MockBrowserContext> mock_browser_context_; |
577 scoped_ptr<MockDownloadManagerObserver> observer_; | 577 scoped_ptr<MockDownloadManagerObserver> observer_; |
578 int next_download_id_; | 578 int next_download_id_; |
579 | 579 |
580 DISALLOW_COPY_AND_ASSIGN(DownloadManagerTest); | 580 DISALLOW_COPY_AND_ASSIGN(DownloadManagerTest); |
581 }; | 581 }; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 .WillOnce(Return()); | 682 .WillOnce(Return()); |
683 EXPECT_CALL(GetMockDownloadItem(3), Remove()) | 683 EXPECT_CALL(GetMockDownloadItem(3), Remove()) |
684 .Times(0); | 684 .Times(0); |
685 | 685 |
686 download_manager_->RemoveAllDownloads(); | 686 download_manager_->RemoveAllDownloads(); |
687 // Because we're mocking the download item, the Remove call doesn't | 687 // Because we're mocking the download item, the Remove call doesn't |
688 // result in them being removed from the DownloadManager list. | 688 // result in them being removed from the DownloadManager list. |
689 } | 689 } |
690 | 690 |
691 } // namespace content | 691 } // namespace content |
OLD | NEW |