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

Unified Diff: ios/chrome/browser/crash_loop_detection_util_unittest.mm

Issue 2592173002: Fix ios_chrome_unittests to crash on DCHECK failure. (Closed)
Patch Set: Address comments Created 4 years 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
Index: ios/chrome/browser/crash_loop_detection_util_unittest.mm
diff --git a/ios/chrome/browser/crash_loop_detection_util_unittest.mm b/ios/chrome/browser/crash_loop_detection_util_unittest.mm
index c36670a08bcaa16247c5a3d9af769eb408ce541f..ea620e8a2e886012a076aff84fa8ede08b072811 100644
--- a/ios/chrome/browser/crash_loop_detection_util_unittest.mm
+++ b/ios/chrome/browser/crash_loop_detection_util_unittest.mm
@@ -15,6 +15,8 @@ NSString* const kAppStartupAttemptCountKey = @"AppStartupFailureCount";
typedef PlatformTest CrashLoopDetectionUtilTest;
TEST_F(CrashLoopDetectionUtilTest, FullCycle) {
+ crash_util::ResetFailedStartupAttemptCountForTests();
+
// Simulate one prior crash.
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setInteger:1 forKey:kAppStartupAttemptCountKey];
« no previous file with comments | « ios/chrome/browser/crash_loop_detection_util.mm ('k') | ios/chrome/browser/metrics/first_user_action_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698