Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc

Issue 210303003: Cast: Remove LoggingStats in favor of event subscribers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cast_streaming/performance_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 net::NetLog::Source())); 297 net::NetLog::Source()));
298 receive_socket->AllowAddressReuse(); 298 receive_socket->AllowAddressReuse();
299 ASSERT_EQ(net::OK, receive_socket->Bind(net::IPEndPoint(localhost, 0))); 299 ASSERT_EQ(net::OK, receive_socket->Bind(net::IPEndPoint(localhost, 0)));
300 net::IPEndPoint receiver_end_point; 300 net::IPEndPoint receiver_end_point;
301 ASSERT_EQ(net::OK, receive_socket->GetLocalAddress(&receiver_end_point)); 301 ASSERT_EQ(net::OK, receive_socket->GetLocalAddress(&receiver_end_point));
302 receive_socket.reset(); 302 receive_socket.reset();
303 303
304 // Start the in-process receiver that examines audio/video for the expected 304 // Start the in-process receiver that examines audio/video for the expected
305 // test patterns. 305 // test patterns.
306 const scoped_refptr<media::cast::StandaloneCastEnvironment> cast_environment( 306 const scoped_refptr<media::cast::StandaloneCastEnvironment> cast_environment(
307 new media::cast::StandaloneCastEnvironment( 307 new media::cast::StandaloneCastEnvironment());
308 media::cast::CastLoggingConfig()));
309 TestPatternReceiver* const receiver = 308 TestPatternReceiver* const receiver =
310 new TestPatternReceiver(cast_environment, receiver_end_point); 309 new TestPatternReceiver(cast_environment, receiver_end_point);
311 receiver->Start(); 310 receiver->Start();
312 311
313 // Launch the page that: 1) renders the source content; 2) uses the 312 // Launch the page that: 1) renders the source content; 2) uses the
314 // chrome.tabCapture and chrome.cast.streaming APIs to capture its content and 313 // chrome.tabCapture and chrome.cast.streaming APIs to capture its content and
315 // stream using Cast; and 3) calls chrome.test.succeed() once it is 314 // stream using Cast; and 3) calls chrome.test.succeed() once it is
316 // operational. 315 // operational.
317 const std::string page_url = base::StringPrintf( 316 const std::string page_url = base::StringPrintf(
318 "end_to_end_sender.html?port=%d", receiver_end_point.port()); 317 "end_to_end_sender.html?port=%d", receiver_end_point.port());
(...skipping 13 matching lines...) Expand all
332 // (see http://crbug.com/349786): 331 // (see http://crbug.com/349786):
333 // receiver->DestroySoon(); 332 // receiver->DestroySoon();
334 cast_environment->Shutdown(); 333 cast_environment->Shutdown();
335 } 334 }
336 335
337 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) { 336 IN_PROC_BROWSER_TEST_F(CastStreamingApiTestWithPixelOutput, RtpStreamError) {
338 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html")); 337 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "rtp_stream_error.html"));
339 } 338 }
340 339
341 } // namespace extensions 340 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cast_streaming/performance_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698