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

Side by Side Diff: remoting/jingle_glue/jingle_glue_mock_objects.h

Issue 6250198: More out-of-lining of test code, along with a bunch of GMOCK objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix the gyp files this time 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_JINGLE_GLUE_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_
6 #define REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_ 6 #define REMOTING_JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_
7 7
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "third_party/libjingle/source/talk/base/stream.h" 9 #include "third_party/libjingle/source/talk/base/stream.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class MockStream : public talk_base::StreamInterface { 13 class MockStream : public talk_base::StreamInterface {
14 public: 14 public:
15 virtual ~MockStream() { } 15 MockStream();
16 virtual ~MockStream();
16 17
17 MOCK_CONST_METHOD0(GetState, talk_base::StreamState()); 18 MOCK_CONST_METHOD0(GetState, talk_base::StreamState());
18 19
19 MOCK_METHOD4(Read, talk_base::StreamResult(void*, size_t, size_t*, int*)); 20 MOCK_METHOD4(Read, talk_base::StreamResult(void*, size_t, size_t*, int*));
20 MOCK_METHOD4(Write, talk_base::StreamResult(const void*, size_t, 21 MOCK_METHOD4(Write, talk_base::StreamResult(const void*, size_t,
21 size_t*, int*)); 22 size_t*, int*));
22 MOCK_CONST_METHOD1(GetAvailable, bool(size_t*)); 23 MOCK_CONST_METHOD1(GetAvailable, bool(size_t*));
23 MOCK_METHOD0(Close, void()); 24 MOCK_METHOD0(Close, void());
24 25
25 MOCK_METHOD3(PostEvent, void(talk_base::Thread*, int, int)); 26 MOCK_METHOD3(PostEvent, void(talk_base::Thread*, int, int));
26 MOCK_METHOD2(PostEvent, void(int, int)); 27 MOCK_METHOD2(PostEvent, void(int, int));
27 }; 28 };
28 29
29 } // namespace remoting 30 } // namespace remoting
30 31
31 #endif // REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_ 32 #endif // REMOTING_JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698