| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, BadLogging) { | 53 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, BadLogging) { |
| 54 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "bad_logging.html")) | 54 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "bad_logging.html")) |
| 55 << message_; | 55 << message_; |
| 56 } | 56 } |
| 57 | 57 |
| 58 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, DestinationNotSet) { | 58 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, DestinationNotSet) { |
| 59 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "destination_not_set.html")) | 59 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "destination_not_set.html")) |
| 60 << message_; | 60 << message_; |
| 61 } | 61 } |
| 62 | 62 |
| 63 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, StopNoStart) { |
| 64 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "stop_no_start.html")) |
| 65 << message_; |
| 66 } |
| 67 |
| 63 namespace { | 68 namespace { |
| 64 | 69 |
| 65 // An in-process Cast receiver that examines the audio/video frames being | 70 // An in-process Cast receiver that examines the audio/video frames being |
| 66 // received for expected colors and tones. Used in | 71 // received for expected colors and tones. Used in |
| 67 // CastStreamingApiTest.EndToEnd, below. | 72 // CastStreamingApiTest.EndToEnd, below. |
| 68 class TestPatternReceiver : public media::cast::InProcessReceiver { | 73 class TestPatternReceiver : public media::cast::InProcessReceiver { |
| 69 public: | 74 public: |
| 70 explicit TestPatternReceiver( | 75 explicit TestPatternReceiver( |
| 71 const scoped_refptr<media::cast::CastEnvironment>& cast_environment, | 76 const scoped_refptr<media::cast::CastEnvironment>& cast_environment, |
| 72 const net::IPEndPoint& local_end_point) | 77 const net::IPEndPoint& local_end_point) |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 343 |
| 339 receiver->Stop(); | 344 receiver->Stop(); |
| 340 cast_environment->Shutdown(); | 345 cast_environment->Shutdown(); |
| 341 } | 346 } |
| 342 | 347 |
| 343 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { | 348 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { |
| 344 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); | 349 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); |
| 345 } | 350 } |
| 346 | 351 |
| 347 } // namespace extensions | 352 } // namespace extensions |
| OLD | NEW |