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

Unified Diff: content/shell/renderer/test_runner/WebUserMediaClientMock.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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: content/shell/renderer/test_runner/WebUserMediaClientMock.h
diff --git a/content/shell/renderer/test_runner/WebUserMediaClientMock.h b/content/shell/renderer/test_runner/WebUserMediaClientMock.h
new file mode 100644
index 0000000000000000000000000000000000000000..37a4bd9d603bf762547d03a241a304179360c51e
--- /dev/null
+++ b/content/shell/renderer/test_runner/WebUserMediaClientMock.h
@@ -0,0 +1,38 @@
+// Copyright 2013 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 WebUserMediaClientMock_h
+#define WebUserMediaClientMock_h
+
+#include "content/shell/renderer/test_runner/TestCommon.h"
+#include "content/shell/renderer/test_runner/WebTask.h"
+#include "third_party/WebKit/public/platform/WebCommon.h"
+#include "third_party/WebKit/public/platform/WebNonCopyable.h"
+#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/platform/WebURL.h"
+#include "third_party/WebKit/public/web/WebUserMediaClient.h"
+
+namespace WebTestRunner {
+
+class WebTestDelegate;
+
+class WebUserMediaClientMock : public blink::WebUserMediaClient, public blink::WebNonCopyable {
+public:
+ explicit WebUserMediaClientMock(WebTestDelegate*);
+ ~WebUserMediaClientMock() { }
+
+ virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE;
+ virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERRIDE;
+
+ // Task related methods
+ WebTaskList* taskList() { return &m_taskList; }
+
+private:
+ WebTaskList m_taskList;
+ WebTestDelegate* m_delegate;
+};
+
+}
+
+#endif // WebUserMediaClientMock_h

Powered by Google App Engine
This is Rietveld 408576698