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

Side by Side Diff: content/browser/renderer_host/media/video_capture_host_unittest.cc

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 MockMediaStreamRequester() {} 80 MockMediaStreamRequester() {}
81 virtual ~MockMediaStreamRequester() {} 81 virtual ~MockMediaStreamRequester() {}
82 82
83 // MediaStreamRequester implementation. 83 // MediaStreamRequester implementation.
84 MOCK_METHOD5(StreamGenerated, 84 MOCK_METHOD5(StreamGenerated,
85 void(int render_view_id, 85 void(int render_view_id,
86 int page_request_id, 86 int page_request_id,
87 const std::string& label, 87 const std::string& label,
88 const StreamDeviceInfoArray& audio_devices, 88 const StreamDeviceInfoArray& audio_devices,
89 const StreamDeviceInfoArray& video_devices)); 89 const StreamDeviceInfoArray& video_devices));
90 MOCK_METHOD2(StreamGenerationFailed, void(int render_view_id, 90 MOCK_METHOD3(StreamGenerationFailed,
91 int page_request_id)); 91 void(int render_view_id,
92 int page_request_id,
93 content::MediaStreamRequestResult result));
92 MOCK_METHOD3(DeviceStopped, void(int render_view_id, 94 MOCK_METHOD3(DeviceStopped, void(int render_view_id,
93 const std::string& label, 95 const std::string& label,
94 const StreamDeviceInfo& device)); 96 const StreamDeviceInfo& device));
95 MOCK_METHOD4(DevicesEnumerated, void(int render_view_id, 97 MOCK_METHOD4(DevicesEnumerated, void(int render_view_id,
96 int page_request_id, 98 int page_request_id,
97 const std::string& label, 99 const std::string& label,
98 const StreamDeviceInfoArray& devices)); 100 const StreamDeviceInfoArray& devices));
99 MOCK_METHOD4(DeviceOpened, void(int render_view_id, 101 MOCK_METHOD4(DeviceOpened, void(int render_view_id,
100 int page_request_id, 102 int page_request_id,
101 const std::string& label, 103 const std::string& label,
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 #ifdef DUMP_VIDEO 528 #ifdef DUMP_VIDEO
527 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) { 529 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) {
528 CaptureAndDumpVideo(640, 480, 30); 530 CaptureAndDumpVideo(640, 480, 30);
529 } 531 }
530 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) { 532 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) {
531 CaptureAndDumpVideo(1280, 720, 30); 533 CaptureAndDumpVideo(1280, 720, 30);
532 } 534 }
533 #endif 535 #endif
534 536
535 } // namespace content 537 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698