Clang-on-Windows update script: fix regex
[chromium-blink-merge.git] / jingle / glue / jingle_glue_mock_objects.h
blobe2cd704d7cdca30fd99bbf0271491e50a5bb249d
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
3 // found in the LICENSE file.
5 #ifndef JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_
6 #define JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_
8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "third_party/libjingle/source/talk/base/stream.h"
11 namespace jingle_glue {
13 class MockStream : public talk_base::StreamInterface {
14 public:
15 MockStream();
16 virtual ~MockStream();
18 MOCK_CONST_METHOD0(GetState, talk_base::StreamState());
20 MOCK_METHOD4(Read, talk_base::StreamResult(void*, size_t, size_t*, int*));
21 MOCK_METHOD4(Write, talk_base::StreamResult(const void*, size_t,
22 size_t*, int*));
23 MOCK_CONST_METHOD1(GetAvailable, bool(size_t*));
24 MOCK_METHOD0(Close, void());
26 MOCK_METHOD3(PostEvent, void(talk_base::Thread*, int, int));
27 MOCK_METHOD2(PostEvent, void(int, int));
30 } // namespace jingle_glue
32 #endif // JINGLE_GLUE_JINGLE_GLUE_MOCK_OBJECTS_H_