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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/crash/MinidumpUploadServiceTest.java

Issue 2394763004: Componentize parts of minidump uploading for use from WebView. (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.browser.crash; 5 package org.chromium.chrome.browser.crash;
6 6
7 import static org.chromium.chrome.browser.crash.MinidumpUploadService.BROWSER; 7 import static org.chromium.chrome.browser.crash.MinidumpUploadService.BROWSER;
8 import static org.chromium.chrome.browser.crash.MinidumpUploadService.GPU; 8 import static org.chromium.chrome.browser.crash.MinidumpUploadService.GPU;
9 import static org.chromium.chrome.browser.crash.MinidumpUploadService.OTHER; 9 import static org.chromium.chrome.browser.crash.MinidumpUploadService.OTHER;
10 import static org.chromium.chrome.browser.crash.MinidumpUploadService.RENDERER; 10 import static org.chromium.chrome.browser.crash.MinidumpUploadService.RENDERER;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 false)); 172 false));
173 runUploadCrashTest(callables); 173 runUploadCrashTest(callables);
174 } 174 }
175 175
176 @SmallTest 176 @SmallTest
177 @Feature({"Android-AppBase"}) 177 @Feature({"Android-AppBase"})
178 public void testUploadCrashWithThreeFails() throws IOException, InterruptedE xception { 178 public void testUploadCrashWithThreeFails() throws IOException, InterruptedE xception {
179 // Create |MAX_TRIES_ALLOWED| callables. 179 // Create |MAX_TRIES_ALLOWED| callables.
180 final List<CountedMinidumpUploadCallable> callables = 180 final List<CountedMinidumpUploadCallable> callables =
181 new ArrayList<CountedMinidumpUploadCallable>(); 181 new ArrayList<CountedMinidumpUploadCallable>();
182 for (int i = 0; i < MinidumpUploadService.MAX_TRIES_ALLOWED; i++) { 182 for (int i = 0; i < CrashFileManager.MAX_TRIES_ALLOWED; i++) {
183 callables.add(new CountedMinidumpUploadCallable( 183 callables.add(new CountedMinidumpUploadCallable(
184 "chromium_renderer-111.dmp1" + (i > 0 ? ".try" + i : "") , 184 "chromium_renderer-111.dmp1" + (i > 0 ? ".try" + i : "") ,
185 MinidumpUploadCallable.UPLOAD_FAILURE, 185 MinidumpUploadCallable.UPLOAD_FAILURE,
186 true)); 186 true));
187 } 187 }
188 runUploadCrashTest(callables); 188 runUploadCrashTest(callables);
189 } 189 }
190 190
191 @SmallTest 191 @SmallTest
192 @Feature({"Android-AppBase"}) 192 @Feature({"Android-AppBase"})
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 this.mTriggerNetworkChange = networkChange; 602 this.mTriggerNetworkChange = networkChange;
603 } 603 }
604 604
605 @Override 605 @Override
606 public Integer call() { 606 public Integer call() {
607 ++mCalledCount; 607 ++mCalledCount;
608 return mResult; 608 return mResult;
609 } 609 }
610 } 610 }
611 } 611 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698