class MockWebContentsDelegate : public content::WebContentsDelegate {
public:
- virtual ~MockWebContentsDelegate() {}
+ ~MockWebContentsDelegate() override {}
};
// Google Mock action that posts a task to the current message loop that invokes
virtual ~TestChromeDownloadManagerDelegate() {}
virtual safe_browsing::DownloadProtectionService*
- GetDownloadProtectionService() OVERRIDE {
+ GetDownloadProtectionService() override {
return NULL;
}
virtual void NotifyExtensions(
content::DownloadItem* download,
const base::FilePath& suggested_virtual_path,
- const NotifyExtensionsCallback& callback) OVERRIDE {
+ const NotifyExtensionsCallback& callback) override {
callback.Run(base::FilePath(),
DownloadPathReservationTracker::UNIQUIFY);
}
bool create_directory,
DownloadPathReservationTracker::FilenameConflictAction conflict_action,
const DownloadPathReservationTracker::ReservedPathCallback& callback)
- OVERRIDE {
+ override {
// Pretend the path reservation succeeded without any change to
// |target_path|.
base::MessageLoop::current()->PostTask(
DownloadItem* download,
const base::FilePath& suggested_path,
const DownloadTargetDeterminerDelegate::FileSelectedCallback& callback)
- OVERRIDE {
+ override {
base::FilePath return_path = MockPromptUserForDownloadPath(download,
suggested_path,
callback);
ChromeDownloadManagerDelegateTest();
// ::testing::Test
- virtual void SetUp() OVERRIDE;
- virtual void TearDown() OVERRIDE;
+ void SetUp() override;
+ void TearDown() override;
// Verifies and clears test expectations for |delegate_| and
// |download_manager_|.