OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/command_line.h" |
| 10 #include "base/gtest_prod_util.h" |
| 11 |
| 12 class ChromeBrowserFieldTrials { |
| 13 public: |
| 14 explicit ChromeBrowserFieldTrials(const CommandLine& command_line); |
| 15 ~ChromeBrowserFieldTrials(); |
| 16 |
| 17 // Add an invocation of your field trial init function to this method. |
| 18 void SetupFieldTrials(bool proxy_policy_is_set); |
| 19 |
| 20 private: |
| 21 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, |
| 22 WarmConnectionFieldTrial_WarmestSocket); |
| 23 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); |
| 24 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); |
| 25 |
| 26 // A/B test for the maximum number of persistent connections per host. |
| 27 void ConnectionFieldTrial(); |
| 28 |
| 29 // A/B test for determining a value for unused socket timeout. |
| 30 void SocketTimeoutFieldTrial(); |
| 31 |
| 32 // A/B test for the maximum number of connections per proxy server. |
| 33 void ProxyConnectionsFieldTrial(); |
| 34 |
| 35 // A/B test for spdy when --use-spdy not set. |
| 36 void SpdyFieldTrial(); |
| 37 |
| 38 // A/B test for warmest socket vs. most recently used socket. |
| 39 void WarmConnectionFieldTrial(); |
| 40 |
| 41 // A/B test for automatically establishing a backup TCP connection when a |
| 42 // specified timeout value is reached. |
| 43 void ConnectBackupJobsFieldTrial(); |
| 44 |
| 45 // Field trial to see what disabling DNS pre-resolution does to |
| 46 // latency of page loads. |
| 47 void PredictorFieldTrial(); |
| 48 |
| 49 // Field trial to see what effect installing defaults in the NTP apps pane |
| 50 // has on retention and general apps/webstore usage. |
| 51 void DefaultAppsFieldTrial(); |
| 52 |
| 53 // A field trial to see what effects launching Chrome automatically on |
| 54 // computer startup has on retention and usage of Chrome. |
| 55 void AutoLaunchChromeFieldTrial(); |
| 56 |
| 57 // A collection of one-time-randomized and session-randomized field trials |
| 58 // intended to test the uniformity and correctness of the field trial control, |
| 59 // bucketing and reporting systems. |
| 60 void SetupUniformityFieldTrials(); |
| 61 |
| 62 // Disables the new tab field trial if not running in desktop mode. |
| 63 void DisableNewTabFieldTrialIfNecesssary(); |
| 64 |
| 65 // Field trial for testing TLS channel id. |
| 66 void ChannelIDFieldTrial(); |
| 67 |
| 68 const CommandLine& parsed_command_line_; |
| 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserFieldTrials); |
| 71 }; |
| 72 |
| 73 #endif // CHROME_BROWSER_CHROME_BROWSER_FIELD_TRIALS_H_ |
OLD | NEW |