| 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 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "blimp/common/proto/blimp_message.pb.h" | 14 #include "blimp/common/proto/blimp_message.pb.h" |
| 15 #include "blimp/net/blimp_connection.h" | 15 #include "blimp/net/blimp_connection.h" |
| 16 #include "blimp/net/blimp_message_processor.h" | 16 #include "blimp/net/blimp_message_processor.h" |
| 17 #include "blimp/net/blimp_transport.h" | 17 #include "blimp/net/blimp_transport.h" |
| 18 #include "blimp/net/connection_error_observer.h" | 18 #include "blimp/net/connection_error_observer.h" |
| 19 #include "blimp/net/connection_handler.h" | 19 #include "blimp/net/connection_handler.h" |
| 20 #include "blimp/net/message_port.h" | 20 #include "blimp/net/message_port.h" |
| 21 #include "blimp/net/packet_reader.h" | 21 #include "blimp/net/packet_reader.h" |
| 22 #include "blimp/net/packet_writer.h" | 22 #include "blimp/net/packet_writer.h" |
| 23 #include "net/log/net_log_with_source.h" |
| 23 #include "net/socket/stream_socket.h" | 24 #include "net/socket/stream_socket.h" |
| 24 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 25 | 26 |
| 26 namespace net { | 27 namespace net { |
| 27 class GrowableIOBuffer; | 28 class GrowableIOBuffer; |
| 28 } // namespace net | 29 } // namespace net |
| 29 | 30 |
| 30 namespace blimp { | 31 namespace blimp { |
| 31 | 32 |
| 32 // Checks if the contents of a buffer are an exact match with std::string. | 33 // Checks if the contents of a buffer are an exact match with std::string. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 const net::CompletionCallback& callback) override; | 214 const net::CompletionCallback& callback) override; |
| 214 | 215 |
| 215 MOCK_METHOD2(MockableProcessMessage, | 216 MOCK_METHOD2(MockableProcessMessage, |
| 216 void(const BlimpMessage& message, | 217 void(const BlimpMessage& message, |
| 217 const net::CompletionCallback& callback)); | 218 const net::CompletionCallback& callback)); |
| 218 }; | 219 }; |
| 219 | 220 |
| 220 } // namespace blimp | 221 } // namespace blimp |
| 221 | 222 |
| 222 #endif // BLIMP_NET_TEST_COMMON_H_ | 223 #endif // BLIMP_NET_TEST_COMMON_H_ |
| OLD | NEW |