OLD | NEW |
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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 } else if (HasFlag(kProxyBad)) { | 596 } else if (HasFlag(kProxyBad)) { |
597 udp_proxy = media::cast::test::UDPProxy::Create( | 597 udp_proxy = media::cast::test::UDPProxy::Create( |
598 proxy_end_point, receiver_end_point, | 598 proxy_end_point, receiver_end_point, |
599 media::cast::test::BadNetwork(), media::cast::test::BadNetwork(), | 599 media::cast::test::BadNetwork(), media::cast::test::BadNetwork(), |
600 NULL); | 600 NULL); |
601 } | 601 } |
602 receiver_end_point = proxy_end_point; | 602 receiver_end_point = proxy_end_point; |
603 } | 603 } |
604 | 604 |
605 std::string json_events; | 605 std::string json_events; |
606 ASSERT_TRUE(tracing::BeginTracing( | 606 ASSERT_TRUE(tracing::BeginTracing(base::trace_event::TraceConfig( |
607 "test_fps,mirroring,gpu.capture,cast_perf_test")); | 607 "test_fps,mirroring,gpu.capture,cast_perf_test", ""))); |
608 const std::string page_url = base::StringPrintf( | 608 const std::string page_url = base::StringPrintf( |
609 "performance%d.html?port=%d", | 609 "performance%d.html?port=%d", |
610 getfps(), | 610 getfps(), |
611 receiver_end_point.port()); | 611 receiver_end_point.port()); |
612 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", page_url)) << message_; | 612 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", page_url)) << message_; |
613 ASSERT_TRUE(tracing::EndTracing(&json_events)); | 613 ASSERT_TRUE(tracing::EndTracing(&json_events)); |
614 receiver->Stop(); | 614 receiver->Stop(); |
615 | 615 |
616 // Stop all threads, removes the need for synchronization when analyzing | 616 // Stop all threads, removes the need for synchronization when analyzing |
617 // the data. | 617 // the data. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 CastV2PerformanceTest, | 660 CastV2PerformanceTest, |
661 testing::Values( | 661 testing::Values( |
662 kUseGpu | k24fps, | 662 kUseGpu | k24fps, |
663 kUseGpu | k30fps, | 663 kUseGpu | k30fps, |
664 kUseGpu | k60fps, | 664 kUseGpu | k60fps, |
665 kUseGpu | k24fps | kDisableVsync, | 665 kUseGpu | k24fps | kDisableVsync, |
666 kUseGpu | k30fps | kProxyWifi, | 666 kUseGpu | k30fps | kProxyWifi, |
667 kUseGpu | k30fps | kProxyBad, | 667 kUseGpu | k30fps | kProxyBad, |
668 kUseGpu | k30fps | kSlowClock, | 668 kUseGpu | k30fps | kSlowClock, |
669 kUseGpu | k30fps | kFastClock)); | 669 kUseGpu | k30fps | kFastClock)); |
OLD | NEW |