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

Side by Side Diff: components/test_runner/mock_web_user_media_client.cc

Issue 1858703003: Remove unused fields under components/test_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/test_runner/mock_web_user_media_client.h" 5 #include "components/test_runner/mock_web_user_media_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void RunIfValid() override { request_.requestSucceeded(result_); } 120 void RunIfValid() override { request_.requestSucceeded(result_); }
121 121
122 private: 122 private:
123 WebMediaStreamTrackSourcesRequest request_; 123 WebMediaStreamTrackSourcesRequest request_;
124 WebVector<WebSourceInfo> result_; 124 WebVector<WebSourceInfo> result_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(SourcesRequestTask); 126 DISALLOW_COPY_AND_ASSIGN(SourcesRequestTask);
127 }; 127 };
128 128
129 class MockExtraData : public WebMediaStream::ExtraData { 129 class MockExtraData : public WebMediaStream::ExtraData {
130 public:
131 int foo;
132 }; 130 };
133 131
134 MockWebUserMediaClient::MockWebUserMediaClient(WebTestDelegate* delegate) 132 MockWebUserMediaClient::MockWebUserMediaClient(WebTestDelegate* delegate)
135 : delegate_(delegate) {} 133 : delegate_(delegate) {}
136 134
137 void MockWebUserMediaClient::requestUserMedia( 135 void MockWebUserMediaClient::requestUserMedia(
138 const WebUserMediaRequest& stream_request) { 136 const WebUserMediaRequest& stream_request) {
139 DCHECK(!stream_request.isNull()); 137 DCHECK(!stream_request.isNull());
140 WebUserMediaRequest request = stream_request; 138 WebUserMediaRequest request = stream_request;
141 139
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 sources[i].initialize(WebString::fromUTF8(test_sources[i].id), 250 sources[i].initialize(WebString::fromUTF8(test_sources[i].id),
253 test_sources[i].kind, 251 test_sources[i].kind,
254 WebString::fromUTF8(test_sources[i].label), 252 WebString::fromUTF8(test_sources[i].label),
255 test_sources[i].facing); 253 test_sources[i].facing);
256 } 254 }
257 255
258 delegate_->PostTask(new SourcesRequestTask(this, request, sources)); 256 delegate_->PostTask(new SourcesRequestTask(this, request, sources));
259 } 257 }
260 258
261 } // namespace test_runner 259 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/mock_web_media_stream_center.cc ('k') | components/test_runner/test_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698