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

Side by Side Diff: google_apis/gcm/engine/mcs_client_unittest.cc

Issue 802413003: Standardize usage of virtual/override/final specifiers in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 #include "google_apis/gcm/engine/mcs_client.h" 5 #include "google_apis/gcm/engine/mcs_client.h"
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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return base::UintToString(++next_id_); 82 return base::UintToString(++next_id_);
83 } 83 }
84 84
85 private: 85 private:
86 uint32 next_id_; 86 uint32 next_id_;
87 }; 87 };
88 88
89 class MCSClientTest : public testing::Test { 89 class MCSClientTest : public testing::Test {
90 public: 90 public:
91 MCSClientTest(); 91 MCSClientTest();
92 virtual ~MCSClientTest(); 92 ~MCSClientTest() override;
93 93
94 virtual void SetUp() override; 94 void SetUp() override;
95 95
96 void BuildMCSClient(); 96 void BuildMCSClient();
97 void InitializeClient(); 97 void InitializeClient();
98 void StoreCredentials(); 98 void StoreCredentials();
99 void LoginClient(const std::vector<std::string>& acknowledged_ids); 99 void LoginClient(const std::vector<std::string>& acknowledged_ids);
100 100
101 base::SimpleTestClock* clock() { return &clock_; } 101 base::SimpleTestClock* clock() { return &clock_; }
102 TestMCSClient* mcs_client() const { return mcs_client_.get(); } 102 TestMCSClient* mcs_client() const { return mcs_client_.get(); }
103 FakeConnectionFactory* connection_factory() { 103 FakeConnectionFactory* connection_factory() {
104 return &connection_factory_; 104 return &connection_factory_;
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 865
866 LoginClient(std::vector<std::string>()); 866 LoginClient(std::vector<std::string>());
867 GetFakeHandler()->ExpectOutgoingMessage(message); 867 GetFakeHandler()->ExpectOutgoingMessage(message);
868 GetFakeHandler()->ExpectOutgoingMessage(message2); 868 GetFakeHandler()->ExpectOutgoingMessage(message2);
869 PumpLoop(); 869 PumpLoop();
870 } 870 }
871 871
872 } // namespace 872 } // namespace
873 873
874 } // namespace gcm 874 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/heartbeat_manager_unittest.cc ('k') | google_apis/gcm/engine/registration_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698