| OLD | NEW |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); | 126 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); |
| 127 MOCK_CONST_METHOD0(NumBytesRead, int64_t()); | 127 MOCK_CONST_METHOD0(NumBytesRead, int64_t()); |
| 128 MOCK_CONST_METHOD0(GetConnectTimeMicros, base::TimeDelta()); | 128 MOCK_CONST_METHOD0(GetConnectTimeMicros, base::TimeDelta()); |
| 129 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); | 129 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); |
| 130 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); | 130 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); |
| 131 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); | 131 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); |
| 132 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); | 132 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); |
| 133 MOCK_METHOD0(ClearConnectionAttempts, void()); | 133 MOCK_METHOD0(ClearConnectionAttempts, void()); |
| 134 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); | 134 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); |
| 135 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t()); | 135 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t()); |
| 136 MOCK_CONST_METHOD1(DumpMemoryStats, |
| 137 void(base::trace_event::MemoryAllocatorDump* dump)); |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 class MockBlimpConnection; | 140 class MockBlimpConnection; |
| 139 | 141 |
| 140 class MockTransport : public BlimpTransport { | 142 class MockTransport : public BlimpTransport { |
| 141 public: | 143 public: |
| 142 MockTransport(); | 144 MockTransport(); |
| 143 ~MockTransport() override; | 145 ~MockTransport() override; |
| 144 | 146 |
| 145 MOCK_METHOD1(Connect, void(const net::CompletionCallback& callback)); | 147 MOCK_METHOD1(Connect, void(const net::CompletionCallback& callback)); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 const net::CompletionCallback& callback) override; | 223 const net::CompletionCallback& callback) override; |
| 222 | 224 |
| 223 MOCK_METHOD2(MockableProcessMessage, | 225 MOCK_METHOD2(MockableProcessMessage, |
| 224 void(const BlimpMessage& message, | 226 void(const BlimpMessage& message, |
| 225 const net::CompletionCallback& callback)); | 227 const net::CompletionCallback& callback)); |
| 226 }; | 228 }; |
| 227 | 229 |
| 228 } // namespace blimp | 230 } // namespace blimp |
| 229 | 231 |
| 230 #endif // BLIMP_NET_TEST_COMMON_H_ | 232 #endif // BLIMP_NET_TEST_COMMON_H_ |
| OLD | NEW |