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

Side by Side Diff: content/shell/renderer/test_runner/WebUserMediaClientMock.cpp

Issue 251263002: test_runner: Move three Mock* files into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « content/shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/shell/renderer/test_runner/WebUserMediaClientMock.h" 5 #include "content/shell/renderer/test_runner/WebUserMediaClientMock.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/shell/renderer/test_runner/MockConstraints.h" 8 #include "content/shell/renderer/test_runner/MockConstraints.h"
9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 9 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
10 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 10 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
11 #include "third_party/WebKit/public/platform/WebMediaDeviceInfo.h" 11 #include "third_party/WebKit/public/platform/WebMediaDeviceInfo.h"
12 #include "third_party/WebKit/public/platform/WebMediaStream.h" 12 #include "third_party/WebKit/public/platform/WebMediaStream.h"
13 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 13 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
15 #include "third_party/WebKit/public/platform/WebVector.h" 15 #include "third_party/WebKit/public/platform/WebVector.h"
16 #include "third_party/WebKit/public/web/WebDocument.h" 16 #include "third_party/WebKit/public/web/WebDocument.h"
17 #include "third_party/WebKit/public/web/WebMediaDevicesRequest.h" 17 #include "third_party/WebKit/public/web/WebMediaDevicesRequest.h"
18 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 18 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
19 #include "third_party/WebKit/public/web/WebUserMediaRequest.h" 19 #include "third_party/WebKit/public/web/WebUserMediaRequest.h"
20 20
21 using namespace blink; 21 using namespace blink;
22 22
23 using content::MockConstraints;
24
23 namespace WebTestRunner { 25 namespace WebTestRunner {
24 26
25 class UserMediaRequestTask : public WebMethodTask<WebUserMediaClientMock> { 27 class UserMediaRequestTask : public WebMethodTask<WebUserMediaClientMock> {
26 public: 28 public:
27 UserMediaRequestTask(WebUserMediaClientMock* object, const WebUserMediaReque st& request, const WebMediaStream result) 29 UserMediaRequestTask(WebUserMediaClientMock* object, const WebUserMediaReque st& request, const WebMediaStream result)
28 : WebMethodTask<WebUserMediaClientMock>(object) 30 : WebMethodTask<WebUserMediaClientMock>(object)
29 , m_request(request) 31 , m_request(request)
30 , m_result(result) 32 , m_result(result)
31 { 33 {
32 DCHECK(!m_result.isNull()); 34 DCHECK(!m_result.isNull());
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 devices[2].initialize("device3", WebMediaDeviceInfo::MediaDeviceKindVideoInp ut, "Build-in webcam", "group2"); 172 devices[2].initialize("device3", WebMediaDeviceInfo::MediaDeviceKindVideoInp ut, "Build-in webcam", "group2");
171 173
172 m_delegate->postTask(new MediaDevicesRequestTask(this, request, devices)); 174 m_delegate->postTask(new MediaDevicesRequestTask(this, request, devices));
173 } 175 }
174 176
175 void WebUserMediaClientMock::cancelMediaDevicesRequest(const WebMediaDevicesRequ est&) 177 void WebUserMediaClientMock::cancelMediaDevicesRequest(const WebMediaDevicesRequ est&)
176 { 178 {
177 } 179 }
178 180
179 } 181 }
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698