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

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

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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 | « no previous file | remoting/base/codec_test.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 (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_BASE_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_BASE_BASE_MOCK_OBJECTS_H_
6 #define REMOTING_BASE_BASE_MOCK_OBJECTS_H_ 6 #define REMOTING_BASE_BASE_MOCK_OBJECTS_H_
7 7
8 #include "remoting/base/capture_data.h" 8 #include "remoting/base/capture_data.h"
9 #include "remoting/base/decoder.h" 9 #include "remoting/base/decoder.h"
10 #include "remoting/base/encoder.h" 10 #include "remoting/base/encoder.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 class MockEncoder : public Encoder { 15 class MockEncoder : public Encoder {
16 public: 16 public:
17 MockEncoder(); 17 MockEncoder();
18 virtual ~MockEncoder(); 18 virtual ~MockEncoder();
19 19
20 MOCK_METHOD3(Encode, void( 20 MOCK_METHOD3(Encode, void(
21 scoped_refptr<CaptureData> capture_data, 21 scoped_refptr<CaptureData> capture_data,
22 bool key_frame, 22 bool key_frame,
23 DataAvailableCallback* data_available_callback)); 23 const DataAvailableCallback& data_available_callback));
24 24
25 private: 25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockEncoder); 26 DISALLOW_COPY_AND_ASSIGN(MockEncoder);
27 }; 27 };
28 28
29 } // namespace remoting 29 } // namespace remoting
30 30
31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_ 31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698