| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |