Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: ui/display/chromeos/display_configurator_unittest.cc

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/chromeos/display_configurator.h ('k') | ui/display/chromeos/test/test_display_snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator_unittest.cc
diff --git a/ui/display/chromeos/display_configurator_unittest.cc b/ui/display/chromeos/display_configurator_unittest.cc
index 79cfd7bfdd9075c0537c0e198b8984eca1df91db..7ecb1459d633dd6e212b07c1c5a0f741d6c2a284 100644
--- a/ui/display/chromeos/display_configurator_unittest.cc
+++ b/ui/display/chromeos/display_configurator_unittest.cc
@@ -154,24 +154,24 @@ class TestNativeDisplayDelegate : public NativeDisplayDelegate {
void set_hdcp_state(HDCPState state) { hdcp_state_ = state; }
// DisplayConfigurator::Delegate overrides:
- virtual void Initialize() OVERRIDE { log_->AppendAction(kInitXRandR); }
- virtual void GrabServer() OVERRIDE { log_->AppendAction(kGrab); }
- virtual void UngrabServer() OVERRIDE { log_->AppendAction(kUngrab); }
- virtual void SyncWithServer() OVERRIDE { log_->AppendAction(kSync); }
- virtual void SetBackgroundColor(uint32_t color_argb) OVERRIDE {
+ virtual void Initialize() override { log_->AppendAction(kInitXRandR); }
+ virtual void GrabServer() override { log_->AppendAction(kGrab); }
+ virtual void UngrabServer() override { log_->AppendAction(kUngrab); }
+ virtual void SyncWithServer() override { log_->AppendAction(kSync); }
+ virtual void SetBackgroundColor(uint32_t color_argb) override {
log_->AppendAction(GetBackgroundAction(color_argb));
}
- virtual void ForceDPMSOn() OVERRIDE { log_->AppendAction(kForceDPMS); }
- virtual std::vector<DisplaySnapshot*> GetDisplays() OVERRIDE {
+ virtual void ForceDPMSOn() override { log_->AppendAction(kForceDPMS); }
+ virtual std::vector<DisplaySnapshot*> GetDisplays() override {
return outputs_;
}
virtual void AddMode(const DisplaySnapshot& output,
- const DisplayMode* mode) OVERRIDE {
+ const DisplayMode* mode) override {
log_->AppendAction(GetAddOutputModeAction(output, mode));
}
virtual bool Configure(const DisplaySnapshot& output,
const DisplayMode* mode,
- const gfx::Point& origin) OVERRIDE {
+ const gfx::Point& origin) override {
log_->AppendAction(GetCrtcAction(output, mode, origin));
if (max_configurable_pixels_ == 0)
@@ -182,38 +182,38 @@ class TestNativeDisplayDelegate : public NativeDisplayDelegate {
return mode->size().GetArea() <= max_configurable_pixels_;
}
- virtual void CreateFrameBuffer(const gfx::Size& size) OVERRIDE {
+ virtual void CreateFrameBuffer(const gfx::Size& size) override {
log_->AppendAction(
GetFramebufferAction(size,
outputs_.size() >= 1 ? outputs_[0] : NULL,
outputs_.size() >= 2 ? outputs_[1] : NULL));
}
virtual bool GetHDCPState(const DisplaySnapshot& output,
- HDCPState* state) OVERRIDE {
+ HDCPState* state) override {
*state = hdcp_state_;
return true;
}
virtual bool SetHDCPState(const DisplaySnapshot& output,
- HDCPState state) OVERRIDE {
+ HDCPState state) override {
log_->AppendAction(GetSetHDCPStateAction(output, state));
return true;
}
virtual std::vector<ui::ColorCalibrationProfile>
- GetAvailableColorCalibrationProfiles(const DisplaySnapshot& output) OVERRIDE {
+ GetAvailableColorCalibrationProfiles(const DisplaySnapshot& output) override {
return std::vector<ui::ColorCalibrationProfile>();
}
virtual bool SetColorCalibrationProfile(
const DisplaySnapshot& output,
- ui::ColorCalibrationProfile new_profile) OVERRIDE {
+ ui::ColorCalibrationProfile new_profile) override {
return false;
}
- virtual void AddObserver(NativeDisplayObserver* observer) OVERRIDE {}
+ virtual void AddObserver(NativeDisplayObserver* observer) override {}
- virtual void RemoveObserver(NativeDisplayObserver* observer) OVERRIDE {}
+ virtual void RemoveObserver(NativeDisplayObserver* observer) override {}
private:
// Outputs to be returned by GetDisplays().
@@ -262,13 +262,13 @@ class TestObserver : public DisplayConfigurator::Observer {
// DisplayConfigurator::Observer overrides:
virtual void OnDisplayModeChanged(
- const DisplayConfigurator::DisplayStateList& outputs) OVERRIDE {
+ const DisplayConfigurator::DisplayStateList& outputs) override {
num_changes_++;
latest_outputs_ = outputs;
}
virtual void OnDisplayModeChangeFailed(MultipleDisplayState failed_new_state)
- OVERRIDE {
+ override {
num_failures_++;
latest_failed_state_ = failed_new_state;
}
@@ -296,11 +296,11 @@ class TestStateController : public DisplayConfigurator::StateController {
// DisplayConfigurator::StateController overrides:
virtual MultipleDisplayState GetStateForDisplayIds(
- const std::vector<int64_t>& outputs) const OVERRIDE {
+ const std::vector<int64_t>& outputs) const override {
return state_;
}
virtual bool GetResolutionForDisplayId(int64_t display_id,
- gfx::Size* size) const OVERRIDE {
+ gfx::Size* size) const override {
return false;
}
@@ -316,11 +316,11 @@ class TestMirroringController
TestMirroringController() : software_mirroring_enabled_(false) {}
virtual ~TestMirroringController() {}
- virtual void SetSoftwareMirroring(bool enabled) OVERRIDE {
+ virtual void SetSoftwareMirroring(bool enabled) override {
software_mirroring_enabled_ = enabled;
}
- virtual bool SoftwareMirroringEnabled() const OVERRIDE {
+ virtual bool SoftwareMirroringEnabled() const override {
return software_mirroring_enabled_;
}
@@ -339,7 +339,7 @@ class DisplayConfiguratorTest : public testing::Test {
test_api_(&configurator_) {}
virtual ~DisplayConfiguratorTest() {}
- virtual void SetUp() OVERRIDE {
+ virtual void SetUp() override {
log_.reset(new ActionLogger());
native_display_delegate_ = new TestNativeDisplayDelegate(log_.get());
« no previous file with comments | « ui/display/chromeos/display_configurator.h ('k') | ui/display/chromeos/test/test_display_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698