// VolumeManagerObserver overrides.
virtual void OnDiskAdded(const chromeos::disks::DiskMountManager::Disk& disk,
- bool mounting) OVERRIDE {
+ bool mounting) override {
Event event;
event.type = Event::DISK_ADDED;
event.device_path = disk.device_path(); // Keep only device_path.
}
virtual void OnDiskRemoved(
- const chromeos::disks::DiskMountManager::Disk& disk) OVERRIDE {
+ const chromeos::disks::DiskMountManager::Disk& disk) override {
Event event;
event.type = Event::DISK_REMOVED;
event.device_path = disk.device_path(); // Keep only device_path.
events_.push_back(event);
}
- virtual void OnDeviceAdded(const std::string& device_path) OVERRIDE {
+ virtual void OnDeviceAdded(const std::string& device_path) override {
Event event;
event.type = Event::DEVICE_ADDED;
event.device_path = device_path;
events_.push_back(event);
}
- virtual void OnDeviceRemoved(const std::string& device_path) OVERRIDE {
+ virtual void OnDeviceRemoved(const std::string& device_path) override {
Event event;
event.type = Event::DEVICE_REMOVED;
event.device_path = device_path;
}
virtual void OnVolumeMounted(chromeos::MountError error_code,
- const VolumeInfo& volume_info) OVERRIDE {
+ const VolumeInfo& volume_info) override {
Event event;
event.type = Event::VOLUME_MOUNTED;
event.device_path = volume_info.source_path.AsUTF8Unsafe();
}
virtual void OnVolumeUnmounted(chromeos::MountError error_code,
- const VolumeInfo& volume_info) OVERRIDE {
+ const VolumeInfo& volume_info) override {
Event event;
event.type = Event::VOLUME_UNMOUNTED;
event.device_path = volume_info.source_path.AsUTF8Unsafe();
}
virtual void OnFormatStarted(
- const std::string& device_path, bool success) OVERRIDE {
+ const std::string& device_path, bool success) override {
Event event;
event.type = Event::FORMAT_STARTED;
event.device_path = device_path;
}
virtual void OnFormatCompleted(
- const std::string& device_path, bool success) OVERRIDE {
+ const std::string& device_path, bool success) override {
Event event;
event.type = Event::FORMAT_COMPLETED;
event.device_path = device_path;
scoped_ptr<VolumeManager> volume_manager_;
};
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
power_manager_client_.reset(new chromeos::FakePowerManagerClient);
disk_mount_manager_.reset(new FakeDiskMountManager);
main_profile_.reset(new ProfileEnvironment(power_manager_client_.get(),