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

Side by Side Diff: net/tools/flip_server/flip_test_utils.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_ 5 #ifndef NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_
6 #define NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_ 6 #define NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <string> 11 #include <string>
9 12
10 #include "net/tools/flip_server/sm_interface.h" 13 #include "net/tools/flip_server/sm_interface.h"
11 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
13 16
14 namespace net { 17 namespace net {
15 18
16 class MockSMInterface : public SMInterface { 19 class MockSMInterface : public SMInterface {
17 public: 20 public:
18 MockSMInterface(); 21 MockSMInterface();
19 virtual ~MockSMInterface(); 22 virtual ~MockSMInterface();
20 23
21 MOCK_METHOD2(InitSMInterface, void(SMInterface*, int32)); 24 MOCK_METHOD2(InitSMInterface, void(SMInterface*, int32_t));
22 MOCK_METHOD8(InitSMConnection, 25 MOCK_METHOD8(InitSMConnection,
23 void(SMConnectionPoolInterface*, 26 void(SMConnectionPoolInterface*,
24 SMInterface*, 27 SMInterface*,
25 EpollServer*, 28 EpollServer*,
26 int, 29 int,
27 std::string, 30 std::string,
28 std::string, 31 std::string,
29 std::string, 32 std::string,
30 bool)); 33 bool));
31 MOCK_METHOD2(ProcessReadInput, size_t(const char*, size_t)); 34 MOCK_METHOD2(ProcessReadInput, size_t(const char*, size_t));
32 MOCK_METHOD2(ProcessWriteInput, size_t(const char*, size_t)); 35 MOCK_METHOD2(ProcessWriteInput, size_t(const char*, size_t));
33 MOCK_METHOD1(SetStreamID, void(uint32 stream_id)); 36 MOCK_METHOD1(SetStreamID, void(uint32_t stream_id));
34 MOCK_CONST_METHOD0(MessageFullyRead, bool()); 37 MOCK_CONST_METHOD0(MessageFullyRead, bool());
35 MOCK_CONST_METHOD0(Error, bool()); 38 MOCK_CONST_METHOD0(Error, bool());
36 MOCK_CONST_METHOD0(ErrorAsString, const char*()); 39 MOCK_CONST_METHOD0(ErrorAsString, const char*());
37 MOCK_METHOD0(Reset, void()); 40 MOCK_METHOD0(Reset, void());
38 MOCK_METHOD1(ResetForNewInterface, void(int32 server_idx)); 41 MOCK_METHOD1(ResetForNewInterface, void(int32_t server_idx));
39 MOCK_METHOD0(ResetForNewConnection, void()); 42 MOCK_METHOD0(ResetForNewConnection, void());
40 MOCK_METHOD0(Cleanup, void()); 43 MOCK_METHOD0(Cleanup, void());
41 MOCK_METHOD0(PostAcceptHook, int()); 44 MOCK_METHOD0(PostAcceptHook, int());
42 MOCK_METHOD3(NewStream, void(uint32, uint32, const std::string&)); 45 MOCK_METHOD3(NewStream, void(uint32_t, uint32_t, const std::string&));
43 MOCK_METHOD1(SendEOF, void(uint32 stream_id)); 46 MOCK_METHOD1(SendEOF, void(uint32_t stream_id));
44 MOCK_METHOD1(SendErrorNotFound, void(uint32 stream_id)); 47 MOCK_METHOD1(SendErrorNotFound, void(uint32_t stream_id));
45 MOCK_METHOD2(SendSynStream, size_t(uint32, const BalsaHeaders&)); 48 MOCK_METHOD2(SendSynStream, size_t(uint32_t, const BalsaHeaders&));
46 MOCK_METHOD2(SendSynReply, size_t(uint32, const BalsaHeaders&)); 49 MOCK_METHOD2(SendSynReply, size_t(uint32_t, const BalsaHeaders&));
47 MOCK_METHOD5(SendDataFrame, void(uint32, const char*, int64, uint32, bool)); 50 MOCK_METHOD5(SendDataFrame,
51 void(uint32_t, const char*, int64_t, uint32_t, bool));
48 MOCK_METHOD0(GetOutput, void()); 52 MOCK_METHOD0(GetOutput, void());
49 MOCK_METHOD0(set_is_request, void()); 53 MOCK_METHOD0(set_is_request, void());
50 }; 54 };
51 55
52 } // namespace net 56 } // namespace net
53 57
54 #endif // NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_ 58 #endif // NET_TOOLS_FLIP_SERVER_FLIP_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/flip_server/flip_in_mem_edsm_server.cc ('k') | net/tools/flip_server/http_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698