| 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 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/test/trace_event_analyzer.h" | 14 #include "base/test/trace_event_analyzer.h" |
| 15 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
| 16 #include "base/win/windows_version.h" | |
| 17 #include "chrome/browser/extensions/extension_apitest.h" | 16 #include "chrome/browser/extensions/extension_apitest.h" |
| 18 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
| 19 #include "chrome/browser/extensions/tab_helper.h" | 18 #include "chrome/browser/extensions/tab_helper.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 20 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
| 22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/test/base/test_launcher_utils.h" | 22 #include "chrome/test/base/test_launcher_utils.h" |
| 24 #include "chrome/test/base/test_switches.h" | 23 #include "chrome/test/base/test_switches.h" |
| 25 #include "chrome/test/base/tracing.h" | 24 #include "chrome/test/base/tracing.h" |
| 26 #include "content/public/browser/render_process_host.h" | 25 #include "content/public/browser/render_process_host.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 #include "net/base/ip_endpoint.h" | 46 #include "net/base/ip_endpoint.h" |
| 48 #include "net/base/net_errors.h" | 47 #include "net/base/net_errors.h" |
| 49 #include "net/base/rand_callback.h" | 48 #include "net/base/rand_callback.h" |
| 50 #include "net/log/net_log_source.h" | 49 #include "net/log/net_log_source.h" |
| 51 #include "net/socket/udp_server_socket.h" | 50 #include "net/socket/udp_server_socket.h" |
| 52 #include "testing/gtest/include/gtest/gtest.h" | 51 #include "testing/gtest/include/gtest/gtest.h" |
| 53 #include "testing/perf/perf_test.h" | 52 #include "testing/perf/perf_test.h" |
| 54 #include "ui/compositor/compositor_switches.h" | 53 #include "ui/compositor/compositor_switches.h" |
| 55 #include "ui/gl/gl_switches.h" | 54 #include "ui/gl/gl_switches.h" |
| 56 | 55 |
| 56 #if defined(OS_WIN) |
| 57 #include "base/win/windows_version.h" |
| 58 #endif |
| 59 |
| 57 namespace { | 60 namespace { |
| 58 | 61 |
| 59 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; | 62 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; |
| 60 | 63 |
| 61 // Skip a few events from the beginning. | 64 // Skip a few events from the beginning. |
| 62 static const size_t kSkipEvents = 3; | 65 static const size_t kSkipEvents = 3; |
| 63 | 66 |
| 64 enum TestFlags { | 67 enum TestFlags { |
| 65 kUseGpu = 1 << 0, // Only execute test if --enable-gpu was given | 68 kUseGpu = 1 << 0, // Only execute test if --enable-gpu was given |
| 66 // on the command line. This is required for | 69 // on the command line. This is required for |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 CastV2PerformanceTest, | 664 CastV2PerformanceTest, |
| 662 testing::Values( | 665 testing::Values( |
| 663 kUseGpu | k24fps, | 666 kUseGpu | k24fps, |
| 664 kUseGpu | k30fps, | 667 kUseGpu | k30fps, |
| 665 kUseGpu | k60fps, | 668 kUseGpu | k60fps, |
| 666 kUseGpu | k24fps | kDisableVsync, | 669 kUseGpu | k24fps | kDisableVsync, |
| 667 kUseGpu | k30fps | kProxyWifi, | 670 kUseGpu | k30fps | kProxyWifi, |
| 668 kUseGpu | k30fps | kProxyBad, | 671 kUseGpu | k30fps | kProxyBad, |
| 669 kUseGpu | k30fps | kSlowClock, | 672 kUseGpu | k30fps | kSlowClock, |
| 670 kUseGpu | k30fps | kFastClock)); | 673 kUseGpu | k30fps | kFastClock)); |
| OLD | NEW |