class TestDelegate : public DownloadUIController::Delegate {
public:
explicit TestDelegate(base::WeakPtr<content::DownloadItem*> receiver);
- virtual ~TestDelegate() {}
+ ~TestDelegate() override {}
private:
- virtual void OnNewDownloadReady(content::DownloadItem* item) OVERRIDE;
+ void OnNewDownloadReady(content::DownloadItem* item) override;
base::WeakPtr<content::DownloadItem*> receiver_;
};
class TestDownloadService : public DownloadService {
public:
explicit TestDownloadService(Profile* profile);
- virtual ~TestDownloadService();
+ ~TestDownloadService() override;
void set_download_history(scoped_ptr<DownloadHistory> download_history) {
download_history_.swap(download_history);
}
- virtual DownloadHistory* GetDownloadHistory() OVERRIDE;
+ DownloadHistory* GetDownloadHistory() override;
private:
scoped_ptr<DownloadHistory> download_history_;
protected:
// testing::Test
- virtual void SetUp() OVERRIDE;
+ void SetUp() override;
// Returns a TestDelegate. Invoking OnNewDownloadReady on the returned
// delegate results in the DownloadItem* being stored in |notified_item_|.
HistoryService::DownloadQueryCallback download_query_callback_;
private:
- virtual void QueryDownloads(
- const HistoryService::DownloadQueryCallback& callback) OVERRIDE {
+ void QueryDownloads(
+ const HistoryService::DownloadQueryCallback& callback) override {
download_query_callback_ = callback;
}
};
scoped_ptr<HistoryAdapter> history_adapter(new HistoryAdapter);
history_adapter_ = history_adapter.get();
- scoped_ptr<DownloadHistory> download_history(new DownloadHistory(
- manager_.get(),
- history_adapter.PassAs<DownloadHistory::HistoryAdapter>()));
+ scoped_ptr<DownloadHistory> download_history(
+ new DownloadHistory(manager_.get(), history_adapter.Pass()));
ASSERT_TRUE(download_history_manager_observer_);
EXPECT_CALL(*manager_, AddObserver(_))