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

Unified Diff: webkit/support/test_media_stream_client.h

Issue 8887004: add components for integration test which will detect breakage of media pipeline with video captu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: corresponding change with webkit patch Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: webkit/support/test_media_stream_client.h
===================================================================
--- webkit/support/test_media_stream_client.h (revision 0)
+++ webkit/support/test_media_stream_client.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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.
+
+// TestMediaStreamClient is an implementation of webkit_media::MediaStreamClient
+// and used with WebKit::WebUserMediaClientMock to provide corresponding video
+// decoder to media pipeline.
+
+#ifndef WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
+#define WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
+
+#include "webkit/media/media_stream_client.h"
+
+namespace WebKit {
+class WebUserMediaClientMock;
+}
+
+namespace webkit_support {
+
+class TestMediaStreamClient : public webkit_media::MediaStreamClient {
+ public:
+ explicit TestMediaStreamClient(
+ WebKit::WebUserMediaClientMock* userMediaClientMock);
scherkus (not reviewing) 2011/12/21 20:26:45 fix to unix_hacker style here + below
wjia(left Chromium) 2012/01/03 17:08:12 Done.
+ virtual ~TestMediaStreamClient() { }
scherkus (not reviewing) 2011/12/21 20:26:45 { } -> {}
wjia(left Chromium) 2012/01/03 17:08:12 Done.
+
+ // Implement webkit_media::MediaStreamClient.
+ virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
+ const GURL& url, media::MessageLoopFactory* message_loop_factory);
+
+ private:
+ WebKit::WebUserMediaClientMock* m_userMediaClientMock;
+};
+
+} // namespace webkit_support
+
+#endif // WEBKIT_SUPPORT_TEST_MEDIA_STREAM_CLIENT_H_
Property changes on: webkit/support/test_media_stream_client.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698