class NoOpAutofillBackend : public AutofillWebDataBackend {
public:
NoOpAutofillBackend() {}
- virtual ~NoOpAutofillBackend() {}
- virtual WebDatabase* GetDatabase() OVERRIDE { return NULL; }
- virtual void AddObserver(
- autofill::AutofillWebDataServiceObserverOnDBThread* observer) OVERRIDE {}
- virtual void RemoveObserver(
- autofill::AutofillWebDataServiceObserverOnDBThread* observer) OVERRIDE {}
- virtual void RemoveExpiredFormElements() OVERRIDE {}
- virtual void NotifyOfMultipleAutofillChanges() OVERRIDE {}
+ ~NoOpAutofillBackend() override {}
+ WebDatabase* GetDatabase() override { return NULL; }
+ void AddObserver(
+ autofill::AutofillWebDataServiceObserverOnDBThread* observer) override {}
+ void RemoveObserver(
+ autofill::AutofillWebDataServiceObserverOnDBThread* observer) override {}
+ void RemoveExpiredFormElements() override {}
+ void NotifyOfMultipleAutofillChanges() override {}
};
// Fake WebDataService implementation that stubs out the database loading.
db_loaded_callback_.Run();
}
- virtual bool IsDatabaseLoaded() OVERRIDE {
- return is_database_loaded_;
- }
+ bool IsDatabaseLoaded() override { return is_database_loaded_; }
- virtual void RegisterDBLoadedCallback(
- const base::Callback<void(void)>& callback) OVERRIDE {
+ void RegisterDBLoadedCallback(
+ const base::Callback<void(void)>& callback) override {
db_loaded_callback_ = callback;
}
}
private:
- virtual ~FakeWebDataService() {
- }
+ ~FakeWebDataService() override {}
void CreateSyncableService() {
ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB));
: MockWebDataServiceWrapper(new FakeWebDataService(), NULL) {
}
- virtual void Shutdown() OVERRIDE {
+ void Shutdown() override {
static_cast<FakeWebDataService*>(
fake_autofill_web_data_.get())->ShutdownOnUIThread();
// Make sure WebDataService is shutdown properly on DB thread before we
last_start_result_(sync_driver::DataTypeController::OK),
weak_ptr_factory_(this) {}
- virtual ~SyncAutofillDataTypeControllerTest() {}
+ ~SyncAutofillDataTypeControllerTest() override {}
- virtual void SetUp() {
+ void SetUp() override {
EXPECT_CALL(profile_sync_factory_,
GetSyncableServiceForType(_)).
WillRepeatedly(Return(base::WeakPtr<syncer::SyncableService>()));
EXPECT_EQ(type, syncer::AUTOFILL);
}
- virtual void TearDown() {
- autofill_dtc_ = NULL;
- }
+ void TearDown() override { autofill_dtc_ = NULL; }
void BlockForDBThread() {
base::RunLoop run_loop;