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

Side by Side Diff: chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc

Issue 391263002: Cast: cast.streaming API to support null audio (or video) track (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: idl compiler Created 6 years, 5 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 | « no previous file | chrome/browser/media/media_capture_devices_dispatcher.cc » ('j') | 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 <algorithm> 5 #include <algorithm>
6 #include <cmath> 6 #include <cmath>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/float_util.h" 9 #include "base/float_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, DestinationNotSet) { 62 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, DestinationNotSet) {
63 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "destination_not_set.html")) 63 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "destination_not_set.html"))
64 << message_; 64 << message_;
65 } 65 }
66 66
67 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, StopNoStart) { 67 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, StopNoStart) {
68 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "stop_no_start.html")) 68 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "stop_no_start.html"))
69 << message_; 69 << message_;
70 } 70 }
71 71
72 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, NullStream) {
73 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "null_stream.html"))
74 << message_;
75 }
76
72 namespace { 77 namespace {
73 78
74 // An in-process Cast receiver that examines the audio/video frames being 79 // An in-process Cast receiver that examines the audio/video frames being
75 // received for expected colors and tones. Used in 80 // received for expected colors and tones. Used in
76 // CastStreamingApiTest.EndToEnd, below. 81 // CastStreamingApiTest.EndToEnd, below.
77 class TestPatternReceiver : public media::cast::InProcessReceiver { 82 class TestPatternReceiver : public media::cast::InProcessReceiver {
78 public: 83 public:
79 explicit TestPatternReceiver( 84 explicit TestPatternReceiver(
80 const scoped_refptr<media::cast::CastEnvironment>& cast_environment, 85 const scoped_refptr<media::cast::CastEnvironment>& cast_environment,
81 const net::IPEndPoint& local_end_point) 86 const net::IPEndPoint& local_end_point)
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 347
343 delete receiver; 348 delete receiver;
344 cast_environment->Shutdown(); 349 cast_environment->Shutdown();
345 } 350 }
346 351
347 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { 352 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) {
348 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); 353 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html"));
349 } 354 }
350 355
351 } // namespace extensions 356 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/media_capture_devices_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698