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

Side by Side Diff: blimp/net/test_common.h

Issue 1696563002: Blimp: add support for SSL connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reland (safe_json issue fixed). Created 4 years, 9 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
« no previous file with comments | « blimp/net/tcp_transport_unittest.cc ('k') | blimp/net/test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_NET_TEST_COMMON_H_ 5 #ifndef BLIMP_NET_TEST_COMMON_H_
6 #define BLIMP_NET_TEST_COMMON_H_ 6 #define BLIMP_NET_TEST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 class MockTransport : public BlimpTransport { 131 class MockTransport : public BlimpTransport {
132 public: 132 public:
133 MockTransport(); 133 MockTransport();
134 ~MockTransport() override; 134 ~MockTransport() override;
135 135
136 MOCK_METHOD1(Connect, void(const net::CompletionCallback& callback)); 136 MOCK_METHOD1(Connect, void(const net::CompletionCallback& callback));
137 MOCK_METHOD0(TakeConnectionPtr, BlimpConnection*()); 137 MOCK_METHOD0(TakeConnectionPtr, BlimpConnection*());
138 138
139 scoped_ptr<BlimpConnection> TakeConnection() override; 139 scoped_ptr<BlimpConnection> TakeConnection() override;
140 const std::string GetName() const override; 140 const char* GetName() const override;
141 }; 141 };
142 142
143 class MockConnectionHandler : public ConnectionHandler { 143 class MockConnectionHandler : public ConnectionHandler {
144 public: 144 public:
145 MockConnectionHandler(); 145 MockConnectionHandler();
146 ~MockConnectionHandler() override; 146 ~MockConnectionHandler() override;
147 147
148 MOCK_METHOD1(HandleConnectionPtr, void(BlimpConnection* connection)); 148 MOCK_METHOD1(HandleConnectionPtr, void(BlimpConnection* connection));
149 void HandleConnection(scoped_ptr<BlimpConnection> connection) override; 149 void HandleConnection(scoped_ptr<BlimpConnection> connection) override;
150 }; 150 };
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const net::CompletionCallback& callback) override; 207 const net::CompletionCallback& callback) override;
208 208
209 MOCK_METHOD2(MockableProcessMessage, 209 MOCK_METHOD2(MockableProcessMessage,
210 void(const BlimpMessage& message, 210 void(const BlimpMessage& message,
211 const net::CompletionCallback& callback)); 211 const net::CompletionCallback& callback));
212 }; 212 };
213 213
214 } // namespace blimp 214 } // namespace blimp
215 215
216 #endif // BLIMP_NET_TEST_COMMON_H_ 216 #endif // BLIMP_NET_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « blimp/net/tcp_transport_unittest.cc ('k') | blimp/net/test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698