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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <cmath> | 9 #include <cmath> |
10 #include <vector> | 10 #include <vector> |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } // namespace | 319 } // namespace |
320 | 320 |
321 class CastStreamingApiTestWithPixelOutput : public CastStreamingApiTest { | 321 class CastStreamingApiTestWithPixelOutput : public CastStreamingApiTest { |
322 void SetUp() override { | 322 void SetUp() override { |
323 EnablePixelOutput(); | 323 EnablePixelOutput(); |
324 CastStreamingApiTest::SetUp(); | 324 CastStreamingApiTest::SetUp(); |
325 } | 325 } |
326 | 326 |
327 void SetUpCommandLine(base::CommandLine* command_line) override { | 327 void SetUpCommandLine(base::CommandLine* command_line) override { |
328 command_line->AppendSwitchASCII(::switches::kWindowSize, "128,128"); | 328 command_line->AppendSwitchASCII(::switches::kWindowSize, "128,128"); |
| 329 #if defined(OS_MACOSX) |
| 330 command_line->AppendSwitch(::switches::kDisableVTAcceleratedVideoEncode); |
| 331 #endif // defined(OS_MACOSX) |
329 CastStreamingApiTest::SetUpCommandLine(command_line); | 332 CastStreamingApiTest::SetUpCommandLine(command_line); |
330 } | 333 } |
331 }; | 334 }; |
332 | 335 |
333 // Tests the Cast streaming API and its basic functionality end-to-end. An | 336 // Tests the Cast streaming API and its basic functionality end-to-end. An |
334 // extension subtest is run to generate test content, capture that content, and | 337 // extension subtest is run to generate test content, capture that content, and |
335 // use the API to send it out. At the same time, this test launches an | 338 // use the API to send it out. At the same time, this test launches an |
336 // in-process Cast receiver, listening on a localhost UDP socket, to receive the | 339 // in-process Cast receiver, listening on a localhost UDP socket, to receive the |
337 // content and check whether it matches expectations. | 340 // content and check whether it matches expectations. |
338 // | 341 // |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 391 |
389 delete receiver; | 392 delete receiver; |
390 cast_environment->Shutdown(); | 393 cast_environment->Shutdown(); |
391 } | 394 } |
392 | 395 |
393 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { | 396 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { |
394 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); | 397 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); |
395 } | 398 } |
396 | 399 |
397 } // namespace extensions | 400 } // namespace extensions |
OLD | NEW |