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 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 }; | 328 }; |
329 | 329 |
330 // Tests the Cast streaming API and its basic functionality end-to-end. An | 330 // Tests the Cast streaming API and its basic functionality end-to-end. An |
331 // extension subtest is run to generate test content, capture that content, and | 331 // extension subtest is run to generate test content, capture that content, and |
332 // use the API to send it out. At the same time, this test launches an | 332 // use the API to send it out. At the same time, this test launches an |
333 // in-process Cast receiver, listening on a localhost UDP socket, to receive the | 333 // in-process Cast receiver, listening on a localhost UDP socket, to receive the |
334 // content and check whether it matches expectations. | 334 // content and check whether it matches expectations. |
335 // | 335 // |
336 // TODO(miu): Now that this test has been long-stable on Release build bots, it | 336 // TODO(miu): Now that this test has been long-stable on Release build bots, it |
337 // should be enabled for the Debug build bots. http://crbug.com/396413 | 337 // should be enabled for the Debug build bots. http://crbug.com/396413 |
338 #if defined(NDEBUG) | 338 // Disabled in MacOS: https://crbug.com/557929 |
| 339 #if defined(NDEBUG) && !defined(OS_MACOSX) |
339 #define MAYBE_EndToEnd EndToEnd | 340 #define MAYBE_EndToEnd EndToEnd |
340 #else | 341 #else |
341 #define MAYBE_EndToEnd DISABLED_EndToEnd | 342 #define MAYBE_EndToEnd DISABLED_EndToEnd |
342 #endif | 343 #endif |
343 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, MAYBE_EndToEnd) { | 344 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, MAYBE_EndToEnd) { |
344 scoped_ptr<net::UDPServerSocket> receive_socket( | 345 scoped_ptr<net::UDPServerSocket> receive_socket( |
345 new net::UDPServerSocket(NULL, net::NetLog::Source())); | 346 new net::UDPServerSocket(NULL, net::NetLog::Source())); |
346 receive_socket->AllowAddressReuse(); | 347 receive_socket->AllowAddressReuse(); |
347 ASSERT_EQ(net::OK, receive_socket->Listen(GetFreeLocalPort())); | 348 ASSERT_EQ(net::OK, receive_socket->Listen(GetFreeLocalPort())); |
348 net::IPEndPoint receiver_end_point; | 349 net::IPEndPoint receiver_end_point; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 386 |
386 delete receiver; | 387 delete receiver; |
387 cast_environment->Shutdown(); | 388 cast_environment->Shutdown(); |
388 } | 389 } |
389 | 390 |
390 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { | 391 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { |
391 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); | 392 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); |
392 } | 393 } |
393 | 394 |
394 } // namespace extensions | 395 } // namespace extensions |
OLD | NEW |