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

Unified Diff: mojo/services/window_manager/window_manager_api_unittest.cc

Issue 617503003: Mojo: MOJO_OVERRIDE -> override in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 3 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 | « mojo/services/window_manager/main.cc ('k') | mojo/services/window_manager/window_manager_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_api_unittest.cc
diff --git a/mojo/services/window_manager/window_manager_api_unittest.cc b/mojo/services/window_manager/window_manager_api_unittest.cc
index 03fb8819eeb41492da5518fc7fcf0b33151a493c..49bd98e688772d6abd6379e681006c64f8926d22 100644
--- a/mojo/services/window_manager/window_manager_api_unittest.cc
+++ b/mojo/services/window_manager/window_manager_api_unittest.cc
@@ -65,22 +65,16 @@ class TestWindowManagerClient : public WindowManagerClient {
private:
// Overridden from WindowManagerClient:
- virtual void OnWindowManagerReady() MOJO_OVERRIDE {
- run_loop_->Quit();
- }
- virtual void OnCaptureChanged(
- Id old_capture_node_id,
- Id new_capture_node_id) MOJO_OVERRIDE {
- }
- virtual void OnFocusChanged(
- Id old_focused_node_id,
- Id new_focused_node_id) MOJO_OVERRIDE {
+ virtual void OnWindowManagerReady() override { run_loop_->Quit(); }
+ virtual void OnCaptureChanged(Id old_capture_node_id,
+ Id new_capture_node_id) override {}
+ virtual void OnFocusChanged(Id old_focused_node_id,
+ Id new_focused_node_id) override {
if (!focus_changed_callback_.is_null())
focus_changed_callback_.Run(old_focused_node_id, new_focused_node_id);
}
- virtual void OnActiveWindowChanged(
- Id old_active_window,
- Id new_active_window) MOJO_OVERRIDE {
+ virtual void OnActiveWindowChanged(Id old_active_window,
+ Id new_active_window) override {
if (!active_window_changed_callback_.is_null())
active_window_changed_callback_.Run(old_active_window, new_active_window);
}
@@ -106,7 +100,7 @@ class TestApplicationLoader : public ApplicationLoader,
// Overridden from ApplicationLoader:
virtual void Load(ApplicationManager* application_manager,
const GURL& url,
- scoped_refptr<LoadCallbacks> callbacks) MOJO_OVERRIDE {
+ scoped_refptr<LoadCallbacks> callbacks) override {
ScopedMessagePipeHandle shell_handle = callbacks->RegisterApplication();
if (!shell_handle.is_valid())
return;
@@ -115,31 +109,28 @@ class TestApplicationLoader : public ApplicationLoader,
apps_.push_back(app.release());
}
virtual void OnApplicationError(ApplicationManager* application_manager,
- const GURL& url) MOJO_OVERRIDE {}
+ const GURL& url) override {}
// Overridden from ApplicationDelegate:
- virtual void Initialize(ApplicationImpl* app) MOJO_OVERRIDE {
+ virtual void Initialize(ApplicationImpl* app) override {
view_manager_client_factory_.reset(
new ViewManagerClientFactory(app->shell(), this));
}
virtual bool ConfigureIncomingConnection(
- ApplicationConnection* connection) MOJO_OVERRIDE {
+ ApplicationConnection* connection) override {
connection->AddService(view_manager_client_factory_.get());
return true;
}
// Overridden from ViewManagerDelegate:
- virtual void OnEmbed(
- ViewManager* view_manager,
- View* root,
- ServiceProviderImpl* exported_services,
- scoped_ptr<ServiceProvider> imported_services) MOJO_OVERRIDE {
+ virtual void OnEmbed(ViewManager* view_manager,
+ View* root,
+ ServiceProviderImpl* exported_services,
+ scoped_ptr<ServiceProvider> imported_services) override {
root_added_callback_.Run(root);
}
- virtual void OnViewManagerDisconnected(
- ViewManager* view_manager) MOJO_OVERRIDE {
- }
+ virtual void OnViewManagerDisconnected(ViewManager* view_manager) override {}
RootAddedCallback root_added_callback_;
@@ -205,7 +196,7 @@ class WindowManagerApiTest : public testing::Test {
private:
// Overridden from testing::Test:
- virtual void SetUp() MOJO_OVERRIDE {
+ virtual void SetUp() override {
test_helper_.Init();
test_helper_.SetLoaderForURL(
scoped_ptr<ApplicationLoader>(new TestApplicationLoader(base::Bind(
@@ -217,7 +208,7 @@ class WindowManagerApiTest : public testing::Test {
"mojo:mojo_core_window_manager"));
ConnectToWindowManager();
}
- virtual void TearDown() MOJO_OVERRIDE {}
+ virtual void TearDown() override {}
void ConnectToWindowManager() {
test_helper_.application_manager()->ConnectToService(
« no previous file with comments | « mojo/services/window_manager/main.cc ('k') | mojo/services/window_manager/window_manager_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698