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

Side by Side Diff: remoting/base/mock_objects.h

Issue 2840036: Moving Encoder and Decoder to remoting/base (Closed)
Patch Set: fix DEPS Created 10 years, 5 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 | « remoting/base/encoder_vp8_unittest.cc ('k') | remoting/client/mock_objects.h » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 REMOTING_BASE_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_BASE_MOCK_OBJECTS_H_
6 #define REMOTING_BASE_MOCK_OBJECTS_H_ 6 #define REMOTING_BASE_MOCK_OBJECTS_H_
7 7
8 #include "remoting/base/capture_data.h"
9 #include "remoting/base/decoder.h"
10 #include "remoting/base/encoder.h"
8 #include "remoting/base/protocol_decoder.h" 11 #include "remoting/base/protocol_decoder.h"
9 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
10 13
11 namespace remoting { 14 namespace remoting {
12 15
13 class MockProtocolDecoder : public ProtocolDecoder { 16 class MockProtocolDecoder : public ProtocolDecoder {
14 public: 17 public:
15 MockProtocolDecoder() {} 18 MockProtocolDecoder() {}
16 19
17 MOCK_METHOD2(ParseClientMessages, 20 MOCK_METHOD2(ParseClientMessages,
18 void(scoped_refptr<media::DataBuffer> data, 21 void(scoped_refptr<media::DataBuffer> data,
19 ClientMessageList* messages)); 22 ClientMessageList* messages));
20 MOCK_METHOD2(ParseHostMessages, 23 MOCK_METHOD2(ParseHostMessages,
21 void(scoped_refptr<media::DataBuffer> data, 24 void(scoped_refptr<media::DataBuffer> data,
22 HostMessageList* messages)); 25 HostMessageList* messages));
23 26
24 private: 27 private:
25 DISALLOW_COPY_AND_ASSIGN(MockProtocolDecoder); 28 DISALLOW_COPY_AND_ASSIGN(MockProtocolDecoder);
26 }; 29 };
27 30
31 class MockEncoder : public Encoder {
32 public:
33 MockEncoder() {}
34
35 MOCK_METHOD3(Encode, void(
36 scoped_refptr<CaptureData> capture_data,
37 bool key_frame,
38 DataAvailableCallback* data_available_callback));
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockEncoder);
42 };
43
28 } // namespace remoting 44 } // namespace remoting
29 45
30 #endif // REMOTING_BASE_MOCK_OBJECTS_H_ 46 #endif // REMOTING_BASE_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/base/encoder_vp8_unittest.cc ('k') | remoting/client/mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698