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

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

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 new SkewedCastEnvironment(delta)); 587 new SkewedCastEnvironment(delta));
588 TestPatternReceiver* const receiver = 588 TestPatternReceiver* const receiver =
589 new TestPatternReceiver(cast_environment, receiver_end_point); 589 new TestPatternReceiver(cast_environment, receiver_end_point);
590 receiver->Start(); 590 receiver->Start();
591 591
592 scoped_ptr<media::cast::test::UDPProxy> udp_proxy; 592 scoped_ptr<media::cast::test::UDPProxy> udp_proxy;
593 if (HasFlag(kProxyWifi) || HasFlag(kProxyBad)) { 593 if (HasFlag(kProxyWifi) || HasFlag(kProxyBad)) {
594 net::IPEndPoint proxy_end_point = GetFreeLocalPort(); 594 net::IPEndPoint proxy_end_point = GetFreeLocalPort();
595 if (HasFlag(kProxyWifi)) { 595 if (HasFlag(kProxyWifi)) {
596 udp_proxy = media::cast::test::UDPProxy::Create( 596 udp_proxy = media::cast::test::UDPProxy::Create(
597 proxy_end_point, 597 proxy_end_point, receiver_end_point,
598 receiver_end_point, 598 media::cast::test::WifiNetwork(), media::cast::test::WifiNetwork(),
599 media::cast::test::WifiNetwork().Pass(),
600 media::cast::test::WifiNetwork().Pass(),
601 NULL); 599 NULL);
602 } else if (HasFlag(kProxyBad)) { 600 } else if (HasFlag(kProxyBad)) {
603 udp_proxy = media::cast::test::UDPProxy::Create( 601 udp_proxy = media::cast::test::UDPProxy::Create(
604 proxy_end_point, 602 proxy_end_point, receiver_end_point,
605 receiver_end_point, 603 media::cast::test::BadNetwork(), media::cast::test::BadNetwork(),
606 media::cast::test::BadNetwork().Pass(),
607 media::cast::test::BadNetwork().Pass(),
608 NULL); 604 NULL);
609 } 605 }
610 receiver_end_point = proxy_end_point; 606 receiver_end_point = proxy_end_point;
611 } 607 }
612 608
613 std::string json_events; 609 std::string json_events;
614 ASSERT_TRUE(tracing::BeginTracing( 610 ASSERT_TRUE(tracing::BeginTracing(
615 "test_fps,mirroring,gpu.capture,cast_perf_test")); 611 "test_fps,mirroring,gpu.capture,cast_perf_test"));
616 const std::string page_url = base::StringPrintf( 612 const std::string page_url = base::StringPrintf(
617 "performance%d.html?port=%d", 613 "performance%d.html?port=%d",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 CastV2PerformanceTest, 664 CastV2PerformanceTest,
669 testing::Values( 665 testing::Values(
670 kUseGpu | k24fps, 666 kUseGpu | k24fps,
671 kUseGpu | k30fps, 667 kUseGpu | k30fps,
672 kUseGpu | k60fps, 668 kUseGpu | k60fps,
673 kUseGpu | k24fps | kDisableVsync, 669 kUseGpu | k24fps | kDisableVsync,
674 kUseGpu | k30fps | kProxyWifi, 670 kUseGpu | k30fps | kProxyWifi,
675 kUseGpu | k30fps | kProxyBad, 671 kUseGpu | k30fps | kProxyBad,
676 kUseGpu | k30fps | kSlowClock, 672 kUseGpu | k30fps | kSlowClock,
677 kUseGpu | k30fps | kFastClock)); 673 kUseGpu | k30fps | kFastClock));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698