| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ | 5 #ifndef IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ |
| 6 #define IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ | 6 #define IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #import "base/ios/block_types.h" | 8 #import "base/ios/block_types.h" |
| 9 #import "ios/web/public/web_state/web_state.h" | 9 #import "ios/web/public/web_state/web_state.h" |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void SetBooleanUserPref(ios::ChromeBrowserState* browser_state, | 61 void SetBooleanUserPref(ios::ChromeBrowserState* browser_state, |
| 62 const char* pref_name, | 62 const char* pref_name, |
| 63 bool value); | 63 bool value); |
| 64 | 64 |
| 65 // Sets the state of using cellular network. | 65 // Sets the state of using cellular network. |
| 66 void SetWWANStateTo(bool value); | 66 void SetWWANStateTo(bool value); |
| 67 | 67 |
| 68 // Sets the state of first launch. | 68 // Sets the state of first launch. |
| 69 void SetFirstLaunchStateTo(bool value); | 69 void SetFirstLaunchStateTo(bool value); |
| 70 | 70 |
| 71 // Check whether metrics recording is enabled or not. | 71 // Checks whether metrics recording is enabled or not. |
| 72 bool IsMetricsRecordingEnabled(); | 72 bool IsMetricsRecordingEnabled(); |
| 73 | 73 |
| 74 // Check whether metrics reporting is enabled or not. | 74 // Checks whether metrics reporting is enabled or not. |
| 75 bool IsMetricsReportingEnabled(); | 75 bool IsMetricsReportingEnabled(); |
| 76 | 76 |
| 77 // Check whether breakpad recording is enabled or not. | 77 // Checks whether breakpad recording is enabled or not. |
| 78 bool IsBreakpadEnabled(); | 78 bool IsBreakpadEnabled(); |
| 79 | 79 |
| 80 // Check whether breakpad reporting is enabled or not. | 80 // Checks whether breakpad reporting is enabled or not. |
| 81 bool IsBreakpadReportingEnabled(); | 81 bool IsBreakpadReportingEnabled(); |
| 82 | 82 |
| 83 // Check whether this is the first launch after upgrade or not. | 83 // Checks whether this is the first launch after upgrade or not. |
| 84 bool IsFirstLaunchAfterUpgrade(); | 84 bool IsFirstLaunchAfterUpgrade(); |
| 85 | 85 |
| 86 // Simulate launching Chrome from another application. | 86 // Waits for Breakpad to process the queued updates. |
| 87 void WaitForBreakpadQueue(); |
| 88 |
| 89 // Simulates launching Chrome from another application. |
| 87 void OpenChromeFromExternalApp(const GURL& url); | 90 void OpenChromeFromExternalApp(const GURL& url); |
| 88 | 91 |
| 89 } // namespace chrome_test_util | 92 } // namespace chrome_test_util |
| 90 | 93 |
| 91 #endif // IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ | 94 #endif // IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ |
| OLD | NEW |