summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/mock_objects.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 00:18:24 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 00:18:24 +0000
commit0a071a315daf2a8af0f7b85c84127cda268db2f5 (patch)
tree6927656c616bb451c2b31605a964b9cf7529632b /remoting/jingle_glue/mock_objects.h
parentcfbf0a1af6efcfdfdb540a59d8c167a9736a405c (diff)
downloadchromium_src-0a071a315daf2a8af0f7b85c84127cda268db2f5.zip
chromium_src-0a071a315daf2a8af0f7b85c84127cda268db2f5.tar.gz
chromium_src-0a071a315daf2a8af0f7b85c84127cda268db2f5.tar.bz2
More out-of-lining of test code, along with a bunch of GMOCK objects.
Most notably, rename various mock_objects.h files in remoting/ because after deinlining, there were compile failures. This fixes Windows compiling because you can't have two implementation files with the same name in a project, even if they are in different directories. (The output from one compile will clobber the others!) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6250198 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/mock_objects.h')
-rw-r--r--remoting/jingle_glue/mock_objects.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/remoting/jingle_glue/mock_objects.h b/remoting/jingle_glue/mock_objects.h
deleted file mode 100644
index 08e3cea..0000000
--- a/remoting/jingle_glue/mock_objects.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_
-#define REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_
-
-#include "testing/gmock/include/gmock/gmock.h"
-#include "third_party/libjingle/source/talk/base/stream.h"
-
-namespace remoting {
-
-class MockStream : public talk_base::StreamInterface {
- public:
- virtual ~MockStream() { }
-
- MOCK_CONST_METHOD0(GetState, talk_base::StreamState());
-
- MOCK_METHOD4(Read, talk_base::StreamResult(void*, size_t, size_t*, int*));
- MOCK_METHOD4(Write, talk_base::StreamResult(const void*, size_t,
- size_t*, int*));
- MOCK_CONST_METHOD1(GetAvailable, bool(size_t*));
- MOCK_METHOD0(Close, void());
-
- MOCK_METHOD3(PostEvent, void(talk_base::Thread*, int, int));
- MOCK_METHOD2(PostEvent, void(int, int));
-};
-
-} // namespace remoting
-
-#endif // REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_