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

Side by Side Diff: remoting/protocol/message_reader_unittest.cc

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 task.Run(); 60 task.Run();
61 } 61 }
62 62
63 // Used by the DeleteFromCallback() test. 63 // Used by the DeleteFromCallback() test.
64 void DeleteReader(const base::Closure& task) { 64 void DeleteReader(const base::Closure& task) {
65 reader_.reset(); 65 reader_.reset();
66 task.Run(); 66 task.Run();
67 } 67 }
68 68
69 protected: 69 protected:
70 virtual void SetUp() OVERRIDE { 70 virtual void SetUp() override {
71 reader_.reset(new MessageReader()); 71 reader_.reset(new MessageReader());
72 } 72 }
73 73
74 virtual void TearDown() OVERRIDE { 74 virtual void TearDown() override {
75 STLDeleteElements(&messages_); 75 STLDeleteElements(&messages_);
76 } 76 }
77 77
78 void InitReader() { 78 void InitReader() {
79 reader_->Init(&socket_, base::Bind( 79 reader_->Init(&socket_, base::Bind(
80 &MessageReaderTest::OnMessage, base::Unretained(this))); 80 &MessageReaderTest::OnMessage, base::Unretained(this)));
81 } 81 }
82 82
83 void AddMessage(const std::string& message) { 83 void AddMessage(const std::string& message) {
84 std::string data = std::string(4, ' ') + message; 84 std::string data = std::string(4, ' ') + message;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 EXPECT_CALL(callback_, OnMessage(_)) 318 EXPECT_CALL(callback_, OnMessage(_))
319 .Times(1) 319 .Times(1)
320 .WillOnce(Invoke(this, &MessageReaderTest::DeleteReader)); 320 .WillOnce(Invoke(this, &MessageReaderTest::DeleteReader));
321 321
322 InitReader(); 322 InitReader();
323 base::RunLoop().RunUntilIdle(); 323 base::RunLoop().RunUntilIdle();
324 } 324 }
325 325
326 } // namespace protocol 326 } // namespace protocol
327 } // namespace remoting 327 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/me2me_host_authenticator_factory.cc ('k') | remoting/protocol/monitored_video_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698