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 // Disabled in MacOS: https://crbug.com/557929 | 338 #if defined(NDEBUG) |
339 #if defined(NDEBUG) && !defined(OS_MACOSX) | |
340 #define MAYBE_EndToEnd EndToEnd | 339 #define MAYBE_EndToEnd EndToEnd |
341 #else | 340 #else |
342 #define MAYBE_EndToEnd DISABLED_EndToEnd | 341 #define MAYBE_EndToEnd DISABLED_EndToEnd |
343 #endif | 342 #endif |
344 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, MAYBE_EndToEnd) { | 343 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, MAYBE_EndToEnd) { |
345 scoped_ptr<net::UDPServerSocket> receive_socket( | 344 scoped_ptr<net::UDPServerSocket> receive_socket( |
346 new net::UDPServerSocket(NULL, net::NetLog::Source())); | 345 new net::UDPServerSocket(NULL, net::NetLog::Source())); |
347 receive_socket->AllowAddressReuse(); | 346 receive_socket->AllowAddressReuse(); |
348 ASSERT_EQ(net::OK, receive_socket->Listen(GetFreeLocalPort())); | 347 ASSERT_EQ(net::OK, receive_socket->Listen(GetFreeLocalPort())); |
349 net::IPEndPoint receiver_end_point; | 348 net::IPEndPoint receiver_end_point; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 385 |
387 delete receiver; | 386 delete receiver; |
388 cast_environment->Shutdown(); | 387 cast_environment->Shutdown(); |
389 } | 388 } |
390 | 389 |
391 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { | 390 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { |
392 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); | 391 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); |
393 } | 392 } |
394 | 393 |
395 } // namespace extensions | 394 } // namespace extensions |
OLD | NEW |