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

Side by Side Diff: google_apis/gcm/engine/fake_connection_handler.h

Issue 625293003: replace OVERRIDE and FINAL with override and final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_ 5 #ifndef GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_
6 #define GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_ 6 #define GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "google_apis/gcm/base/mcs_message.h" 10 #include "google_apis/gcm/base/mcs_message.h"
11 #include "google_apis/gcm/engine/connection_handler.h" 11 #include "google_apis/gcm/engine/connection_handler.h"
12 12
13 namespace gcm { 13 namespace gcm {
14 14
15 // A fake implementation of a ConnectionHandler that can arbitrarily receive 15 // A fake implementation of a ConnectionHandler that can arbitrarily receive
16 // messages and verify expectations for outgoing messages. 16 // messages and verify expectations for outgoing messages.
17 class FakeConnectionHandler : public ConnectionHandler { 17 class FakeConnectionHandler : public ConnectionHandler {
18 public: 18 public:
19 FakeConnectionHandler( 19 FakeConnectionHandler(
20 const ConnectionHandler::ProtoReceivedCallback& read_callback, 20 const ConnectionHandler::ProtoReceivedCallback& read_callback,
21 const ConnectionHandler::ProtoSentCallback& write_callback); 21 const ConnectionHandler::ProtoSentCallback& write_callback);
22 virtual ~FakeConnectionHandler(); 22 virtual ~FakeConnectionHandler();
23 23
24 // ConnectionHandler implementation. 24 // ConnectionHandler implementation.
25 virtual void Init(const mcs_proto::LoginRequest& login_request, 25 virtual void Init(const mcs_proto::LoginRequest& login_request,
26 net::StreamSocket* socket) OVERRIDE; 26 net::StreamSocket* socket) override;
27 virtual void Reset() OVERRIDE; 27 virtual void Reset() override;
28 virtual bool CanSendMessage() const OVERRIDE; 28 virtual bool CanSendMessage() const override;
29 virtual void SendMessage(const google::protobuf::MessageLite& message) 29 virtual void SendMessage(const google::protobuf::MessageLite& message)
30 OVERRIDE; 30 override;
31 31
32 // EXPECT's receipt of |message| via SendMessage(..). 32 // EXPECT's receipt of |message| via SendMessage(..).
33 void ExpectOutgoingMessage(const MCSMessage& message); 33 void ExpectOutgoingMessage(const MCSMessage& message);
34 34
35 // Reset the expected outgoing messages. 35 // Reset the expected outgoing messages.
36 void ResetOutgoingMessageExpectations(); 36 void ResetOutgoingMessageExpectations();
37 37
38 // Whether all expected outgoing messages have been received; 38 // Whether all expected outgoing messages have been received;
39 bool AllOutgoingMessagesReceived() const; 39 bool AllOutgoingMessagesReceived() const;
40 40
(...skipping 25 matching lines...) Expand all
66 66
67 // Whether a successful login has completed. 67 // Whether a successful login has completed.
68 bool initialized_; 68 bool initialized_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(FakeConnectionHandler); 70 DISALLOW_COPY_AND_ASSIGN(FakeConnectionHandler);
71 }; 71 };
72 72
73 } // namespace gcm 73 } // namespace gcm
74 74
75 #endif // GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_ 75 #endif // GOOGLE_APIS_GCM_ENGINE_FAKE_CONNECTION_HANDLER_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/fake_connection_factory.h ('k') | google_apis/gcm/engine/gcm_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698