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

Issue 2760973002: Fix SettingsTestCase.testBreakpadReportingFirstLaunch on Official (Closed)

Created:
3 years, 9 months ago by lpromero
Modified:
3 years, 8 months ago
Reviewers:
Olivier
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SettingsTestCase.testBreakpadReportingFirstLaunch on Official Breakpad sets its state with dispatch_async: https://cs.chromium.org/chromium/src/breakpad/src/client/ios/BreakpadController.mm?sq=package:chromium&dr&l=174 In EarlGrey tests, wait for the state to be consistent before proceeding. BUG=700839 R=olivierrobin@chromium.org Review-Url: https://codereview.chromium.org/2760973002 Cr-Commit-Position: refs/heads/master@{#459474} Committed: https://chromium.googlesource.com/chromium/src/+/502a0b3e580685f93a0319f433bcf150ddb6806d

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -24 lines) Patch
M ios/chrome/browser/ui/settings/settings_egtest.mm View 5 chunks +17 lines, -24 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 19 (11 generated)
lpromero
3 years, 9 months ago (2017-03-20 18:14:00 UTC) #1
lpromero
Kindly ping.
3 years, 9 months ago (2017-03-23 21:13:11 UTC) #10
Olivier
lgtm
3 years, 9 months ago (2017-03-24 16:15:04 UTC) #11
Olivier
https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm File ios/chrome/browser/ui/settings/settings_egtest.mm (right): https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm#newcode598 ios/chrome/browser/ui/settings/settings_egtest.mm:598: chrome_test_util::SetWWANStateTo(YES); Should we drainUntilIdle here too?
3 years, 9 months ago (2017-03-24 16:18:23 UTC) #12
lpromero
Thanks! https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm File ios/chrome/browser/ui/settings/settings_egtest.mm (right): https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/settings/settings_egtest.mm#newcode598 ios/chrome/browser/ui/settings/settings_egtest.mm:598: chrome_test_util::SetWWANStateTo(YES); On 2017/03/24 16:18:23, Olivier Robin wrote: > ...
3 years, 9 months ago (2017-03-24 17:48:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2760973002/1
3 years, 9 months ago (2017-03-24 17:49:02 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/502a0b3e580685f93a0319f433bcf150ddb6806d
3 years, 9 months ago (2017-03-24 18:07:12 UTC) #18
lpromero
3 years, 8 months ago (2017-03-28 13:31:41 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2775403003/

https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/setti...
File ios/chrome/browser/ui/settings/settings_egtest.mm (right):

https://codereview.chromium.org/2760973002/diff/1/ios/chrome/browser/ui/setti...
ios/chrome/browser/ui/settings/settings_egtest.mm:598:
chrome_test_util::SetWWANStateTo(YES);
On 2017/03/24 17:48:17, lpromero wrote:
> On 2017/03/24 16:18:23, Olivier Robin wrote:
> > Should we drainUntilIdle here too?
> 
> No because under the hood this is synchronous, unlike the Breakpad stuff I
> mention line 472.

Ooops… Yes this is needed as SetWWANStateTo calls -connectionTypeChanged: which
calls -setBreakpadUploadingEnabled: which calls SetUploadingEnabled which calls
-setUploadingEnabled: which is the asynchronous one…

Adding those. I tested that locally it fixes the 2 tests.

Powered by Google App Engine
This is Rietveld 408576698