| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from benchmarks import loading |
| 6 |
| 7 from telemetry import benchmark |
| 8 |
| 9 |
| 10 @benchmark.Owner(emails=['yzshen@chromium.org']) |
| 11 class LoadingDesktopNetworkService(loading.LoadingDesktop): |
| 12 """Measures loading performance of desktop sites, with the network service |
| 13 enabled. |
| 14 """ |
| 15 @classmethod |
| 16 def Name(cls): |
| 17 return 'loading.desktop.network_service' |
| 18 |
| 19 def SetExtraBrowserOptions(self, options): |
| 20 enable_features_arg = '--enable-features=NetworkService' |
| 21 |
| 22 # If an "--enable-features" argument has been specified, append to the value |
| 23 # list of that argument. |
| 24 for arg in options.extra_browser_args: |
| 25 if arg.startswith('--enable-features='): |
| 26 options.extra_browser_args.remove(arg) |
| 27 enable_features_arg = arg + ',NetworkService' |
| 28 break |
| 29 |
| 30 options.AppendExtraBrowserArgs([ enable_features_arg, '--incognito' ]) |
| OLD | NEW |