Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: ios/chrome/browser/ui/settings/settings_egtest.mm

Issue 2775403003: Wait for WWAN state to propagate to Breakpad in EG tests (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/settings/settings_egtest.mm
diff --git a/ios/chrome/browser/ui/settings/settings_egtest.mm b/ios/chrome/browser/ui/settings/settings_egtest.mm
index 6a5d36deb6b339e8f657626dac6284c139875eb4..cff3d839115ce09fc47ed2844c88c06014a6a47d 100644
--- a/ios/chrome/browser/ui/settings/settings_egtest.mm
+++ b/ios/chrome/browser/ui/settings/settings_egtest.mm
@@ -593,10 +593,12 @@ bool IsCertificateCleared() {
// Set the network to use a cellular network, which should disable uploading
// when the wifi-only flag is set.
chrome_test_util::SetWWANStateTo(YES);
+ [[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
[self assertMetricsServiceEnabledButNotUploading:serviceType];
// Turn off cellular network usage, which should enable uploading.
chrome_test_util::SetWWANStateTo(NO);
+ [[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
[self assertMetricsServiceEnabled:serviceType];
// kMetricsReportingEnabled ON and kMetricsReportingWifiOnly OFF
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698