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

Unified Diff: content/browser/media/capture/web_contents_audio_input_stream_unittest.cc

Issue 1135823004: Implement all resolution change policies for desktop and tab capture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resolution_change_policy_constraints_ITEM1_CR1
Patch Set: Addressed Wez's third round comments. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
diff --git a/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc b/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
index ffe8b4b5d3f168dbece96d86e62767170770a8b4..0eebd7a8083b9fa10132fad36fb459ee26c05040 100644
--- a/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
+++ b/content/browser/media/capture/web_contents_audio_input_stream_unittest.cc
@@ -356,13 +356,7 @@ class WebContentsAudioInputStreamTest : public testing::Test {
private:
void SimulateChangeCallback(int render_process_id, int render_frame_id) {
ASSERT_FALSE(change_callback_.is_null());
- if (render_process_id == -1 || render_frame_id == -1) {
- change_callback_.Run(NULL);
- } else {
- // For our tests, any non-NULL value will suffice since it will not be
- // dereferenced.
- change_callback_.Run(reinterpret_cast<RenderWidgetHost*>(0xdeadbee5));
- }
+ change_callback_.Run(render_process_id != -1 && render_frame_id != -1);
}
scoped_ptr<TestBrowserThreadBundle> thread_bundle_;

Powered by Google App Engine
This is Rietveld 408576698