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

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

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lei comments Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/video/video_mock_objects.cc ('k') | remoting/base/base_mock_objects.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_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_BASE_BASE_MOCK_OBJECTS_H_
6 #define REMOTING_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 19
19 MOCK_METHOD3(Encode, void( 20 MOCK_METHOD3(Encode, void(
20 scoped_refptr<CaptureData> capture_data, 21 scoped_refptr<CaptureData> capture_data,
21 bool key_frame, 22 bool key_frame,
22 DataAvailableCallback* data_available_callback)); 23 DataAvailableCallback* data_available_callback));
23 24
24 private: 25 private:
25 DISALLOW_COPY_AND_ASSIGN(MockEncoder); 26 DISALLOW_COPY_AND_ASSIGN(MockEncoder);
26 }; 27 };
27 28
28 } // namespace remoting 29 } // namespace remoting
29 30
30 #endif // REMOTING_BASE_MOCK_OBJECTS_H_ 31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « media/video/video_mock_objects.cc ('k') | remoting/base/base_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698