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

Unified Diff: mojo/public/cpp/bindings/tests/router_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
Index: mojo/public/cpp/bindings/tests/router_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/router_unittest.cc b/mojo/public/cpp/bindings/tests/router_unittest.cc
index 89f17cb0eef8384da9b825a48331b1299f550de6..f094143f01aebab90bf470c7bbaeb21a84829cc9 100644
--- a/mojo/public/cpp/bindings/tests/router_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/router_unittest.cc
@@ -37,7 +37,7 @@ class MessageAccumulator : public MessageReceiver {
explicit MessageAccumulator(internal::MessageQueue* queue) : queue_(queue) {
}
- virtual bool Accept(Message* message) MOJO_OVERRIDE {
+ virtual bool Accept(Message* message) override {
queue_->Push(message);
return true;
}
@@ -51,12 +51,10 @@ class ResponseGenerator : public MessageReceiverWithResponder {
ResponseGenerator() {
}
- virtual bool Accept(Message* message) MOJO_OVERRIDE {
- return false;
- }
+ virtual bool Accept(Message* message) override { return false; }
- virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
- MOJO_OVERRIDE {
+ virtual bool AcceptWithResponder(Message* message,
+ MessageReceiver* responder) override {
EXPECT_TRUE(message->has_flag(internal::kMessageExpectsResponse));
return SendResponse(message->name(), message->request_id(), responder);
@@ -82,8 +80,8 @@ class LazyResponseGenerator : public ResponseGenerator {
delete responder_;
}
- virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
- MOJO_OVERRIDE {
+ virtual bool AcceptWithResponder(Message* message,
+ MessageReceiver* responder) override {
name_ = message->name();
request_id_ = message->request_id();
responder_ = responder;
@@ -108,12 +106,11 @@ class RouterTest : public testing::Test {
RouterTest() {
}
- virtual void SetUp() MOJO_OVERRIDE {
+ virtual void SetUp() override {
CreateMessagePipe(NULL, &handle0_, &handle1_);
}
- virtual void TearDown() MOJO_OVERRIDE {
- }
+ virtual void TearDown() override {}
void PumpMessages() {
loop_.RunUntilIdle();
« no previous file with comments | « mojo/public/cpp/bindings/tests/request_response_unittest.cc ('k') | mojo/public/cpp/bindings/tests/sample_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698