Home
last modified time | relevance | path

Searched refs:MockDownloadItem (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/content/public/test/
Dmock_download_item.cc9 MockDownloadItem::MockDownloadItem() {} in MockDownloadItem() function in content::MockDownloadItem
11 MockDownloadItem::~MockDownloadItem() { in ~MockDownloadItem()
15 void MockDownloadItem::AddObserver(Observer* observer) { in AddObserver()
19 void MockDownloadItem::RemoveObserver(Observer* observer) { in RemoveObserver()
23 void MockDownloadItem::NotifyObserversDownloadOpened() { in NotifyObserversDownloadOpened()
27 void MockDownloadItem::NotifyObserversDownloadRemoved() { in NotifyObserversDownloadRemoved()
31 void MockDownloadItem::NotifyObserversDownloadUpdated() { in NotifyObserversDownloadUpdated()
Dmock_download_item.h19 class MockDownloadItem : public DownloadItem {
21 MockDownloadItem();
22 virtual ~MockDownloadItem();
/external/chromium_org/chrome/browser/download/
Ddownload_path_reservation_tracker_unittest.cc22 using content::MockDownloadItem;
38 MockDownloadItem* CreateDownloadItem(int32 id);
87 MockDownloadItem* DownloadPathReservationTrackerTest::CreateDownloadItem( in CreateDownloadItem()
89 MockDownloadItem* item = new ::testing::StrictMock<MockDownloadItem>; in CreateDownloadItem()
150 void SetDownloadItemState(content::MockDownloadItem* download_item, in SetDownloadItemState()
161 scoped_ptr<MockDownloadItem> item(CreateDownloadItem(1)); in TEST_F()
191 scoped_ptr<MockDownloadItem> item(CreateDownloadItem(1)); in TEST_F()
220 scoped_ptr<MockDownloadItem> item(CreateDownloadItem(1)); in TEST_F()
253 scoped_ptr<MockDownloadItem> item(CreateDownloadItem(1)); in TEST_F()
295 scoped_ptr<MockDownloadItem> item1(CreateDownloadItem(1)); in TEST_F()
[all …]
Ddownload_ui_controller_unittest.cc24 using content::MockDownloadItem;
119 scoped_ptr<MockDownloadItem> CreateMockInProgressDownload();
197 scoped_ptr<MockDownloadItem>
199 scoped_ptr<MockDownloadItem> item( in CreateMockInProgressDownload()
200 new testing::StrictMock<MockDownloadItem>()); in CreateMockInProgressDownload()
244 scoped_ptr<MockDownloadItem> item(CreateMockInProgressDownload()); in TEST_F()
266 scoped_ptr<MockDownloadItem> item = CreateMockInProgressDownload(); in TEST_F()
280 scoped_ptr<MockDownloadItem> item(CreateMockInProgressDownload()); in TEST_F()
309 scoped_ptr<MockDownloadItem> item = CreateMockInProgressDownload(); in TEST_F()
Ddownload_status_updater_unittest.cc109 content::MockDownloadItem* item = in AddItems()
110 new StrictMock<content::MockDownloadItem>; in AddItems()
128 content::MockDownloadItem* Item(int manager_index, int item_index) { in Item()
133 return static_cast<content::MockDownloadItem*>( in Item()
141 content::MockDownloadItem* item(Item(manager_index, item_index)); in SetItemValues()
152 content::MockDownloadItem* item(Item(manager_index, item_index)); in CompleteItem()
Dchrome_download_manager_delegate_unittest.cc138 content::MockDownloadItem* CreateActiveDownloadItem(int32 id);
196 content::MockDownloadItem*
198 content::MockDownloadItem* item = in CreateActiveDownloadItem()
199 new ::testing::NiceMock<content::MockDownloadItem>(); in CreateActiveDownloadItem()
313 scoped_ptr<content::MockDownloadItem> save_as_download( in TEST_F()
322 scoped_ptr<content::MockDownloadItem> automatic_download( in TEST_F()
391 scoped_ptr<content::MockDownloadItem> download_item( in TEST_F()
Ddownload_shelf_unittest.cc40 content::MockDownloadItem* download_item() { in download_item()
62 scoped_ptr<content::MockDownloadItem> GetInProgressMockDownload();
66 scoped_ptr<content::MockDownloadItem> download_item_;
75 download_item_.reset(new ::testing::NiceMock<content::MockDownloadItem>()); in DownloadShelfTest()
Ddownload_target_determiner_unittest.cc198 content::MockDownloadItem* CreateActiveDownloadItem(
218 content::MockDownloadItem* item);
224 content::MockDownloadItem* item);
278 content::MockDownloadItem*
282 content::MockDownloadItem* item = in CreateActiveDownloadItem()
283 new ::testing::NiceMock<content::MockDownloadItem>(); in CreateActiveDownloadItem()
365 content::MockDownloadItem* item) { in RunTestCase()
382 content::MockDownloadItem* item) { in RunDownloadTargetDeterminer()
399 scoped_ptr<content::MockDownloadItem> item( in RunTestCasesWithActiveItem()
948 scoped_ptr<content::MockDownloadItem> item( in TEST_F()
[all …]
Dall_download_item_notifier_unittest.cc49 content::MockDownloadItem& item() { return item_; } in item()
72 NiceMock<content::MockDownloadItem> item_;
Ddownload_danger_prompt_browsertest.cc66 content::MockDownloadItem& download() { return download_; } in download()
94 content::MockDownloadItem download_;
Ddownload_item_model_unittest.cc100 content::MockDownloadItem& item() { in item()
109 NiceMock<content::MockDownloadItem> item_;
Ddownload_history_unittest.cc63 typedef testing::StrictMock<content::MockDownloadItem> StrictMockDownloadItem;
199 typedef base::Callback<void(content::MockDownloadItem*)> DownloadItemCallback;
217 content::MockDownloadItem& item(size_t index) { return *items_[index]; } in item()
472 content::MockDownloadItem* item) { in CheckDownloadWasRestoredFromHistory()
Ddownload_query_unittest.cc56 mocks_.push_back(new content::MockDownloadItem()); in CreateMocks()
62 content::MockDownloadItem& mock(int index) { return *mocks_[index]; } in mock()
94 std::vector<content::MockDownloadItem*> mocks_;
/external/chromium_org/chrome/browser/plugins/
Dplugin_installer_unittest.cc29 scoped_ptr<content::MockDownloadItem> CreateMockDownloadItem();
48 scoped_ptr<content::MockDownloadItem>
50 scoped_ptr<content::MockDownloadItem> mock_download_item( in CreateMockDownloadItem()
51 new testing::StrictMock<content::MockDownloadItem>()); in CreateMockDownloadItem()
104 scoped_ptr<content::MockDownloadItem> download_item(CreateMockDownloadItem()); in TEST_F()
134 scoped_ptr<content::MockDownloadItem> download_item(CreateMockDownloadItem()); in TEST_F()
161 scoped_ptr<content::MockDownloadItem> download_item(CreateMockDownloadItem()); in TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/download/
Ddownload_shelf_controller_unittest.mm23 // Wraps a content::MockDownloadItem so it can be retained by the mock
27 scoped_ptr<content::MockDownloadItem> download_;
29 - (id)initWithMockDownload:(scoped_ptr<content::MockDownloadItem>)download; argument
31 - (content::MockDownloadItem*)mockDownload;
35 - (id)initWithMockDownload:(scoped_ptr<content::MockDownloadItem>)download { argument
46 - (content::MockDownloadItem*)mockDownload {
51 // Test method for accessing the wrapped MockDownloadItem.
118 scoped_ptr<content::MockDownloadItem> download(
119 new ::testing::NiceMock<content::MockDownloadItem>);
Ddownload_item_cell_unittest.mm58 testing::NiceMock<content::MockDownloadItem> item;
/external/chromium_org/chrome/browser/safe_browsing/
Ddownload_feedback_service_unittest.cc121 content::MockDownloadItem item; in WillStorePings()
202 content::MockDownloadItem item; in TEST_F()
242 content::MockDownloadItem item[num_downloads]; in TEST_F()
311 content::MockDownloadItem item[num_downloads]; in TEST_F()
Ddownload_protection_service_unittest.cc367 content::MockDownloadItem item; in TEST_F()
415 content::MockDownloadItem item; in TEST_F()
505 content::MockDownloadItem item; in TEST_F()
549 content::MockDownloadItem item; in TEST_F()
697 content::MockDownloadItem item; in TEST_F()
750 content::MockDownloadItem item; in TEST_F()
832 content::MockDownloadItem item; in TEST_F()
879 content::MockDownloadItem item; in TEST_F()
921 content::MockDownloadItem item; in TEST_F()
1008 content::MockDownloadItem item; in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/
Ddownload_handler_unittest.cc74 content::MockDownloadItem download_item_;
/external/chromium_org/content/browser/download/
Ddownload_item_impl_unittest.cc1298 TEST(MockDownloadItem, Compiles) { in TEST() argument
1299 MockDownloadItem mock_item; in TEST()