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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageSavePageLaterEvaluationTest.java

Issue 2566453002: [OfflinePages] Rename PRERENDERING_* result terminology to LOADING_* (Closed)
Patch Set: Updated histogram enum 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/prerendering_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 package org.chromium.chrome.browser.offlinepages; 5 package org.chromium.chrome.browser.offlinepages;
6 6
7 import android.app.NotificationManager; 7 import android.app.NotificationManager;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.Environment; 9 import android.os.Environment;
10 import android.text.TextUtils; 10 import android.text.TextUtils;
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 Log.e(TAG, e.getMessage(), e); 344 Log.e(TAG, e.getMessage(), e);
345 fail(String.format("URL file %s is not found.", inputFilePath)); 345 fail(String.format("URL file %s is not found.", inputFilePath));
346 } 346 }
347 } 347 }
348 348
349 // Translate the int value of status to BackgroundSavePageResult. 349 // Translate the int value of status to BackgroundSavePageResult.
350 private String statusToString(int status) { 350 private String statusToString(int status) {
351 switch (status) { 351 switch (status) {
352 case BackgroundSavePageResult.SUCCESS: 352 case BackgroundSavePageResult.SUCCESS:
353 return "SUCCESS"; 353 return "SUCCESS";
354 case BackgroundSavePageResult.PRERENDER_FAILURE: 354 case BackgroundSavePageResult.LOADING_FAILURE:
355 return "PRERENDER_FAILURE"; 355 return "LOADING_FAILURE";
356 case BackgroundSavePageResult.PRERENDER_CANCELED: 356 case BackgroundSavePageResult.LOADING_CANCELED:
357 return "PRERENDER_CANCELED"; 357 return "LOADING_CANCELED";
358 case BackgroundSavePageResult.FOREGROUND_CANCELED: 358 case BackgroundSavePageResult.FOREGROUND_CANCELED:
359 return "FOREGROUND_CANCELED"; 359 return "FOREGROUND_CANCELED";
360 case BackgroundSavePageResult.SAVE_FAILED: 360 case BackgroundSavePageResult.SAVE_FAILED:
361 return "SAVE_FAILED"; 361 return "SAVE_FAILED";
362 case BackgroundSavePageResult.EXPIRED: 362 case BackgroundSavePageResult.EXPIRED:
363 return "EXPIRED"; 363 return "EXPIRED";
364 case BackgroundSavePageResult.RETRY_COUNT_EXCEEDED: 364 case BackgroundSavePageResult.RETRY_COUNT_EXCEEDED:
365 return "RETRY_COUNT_EXCEEDED"; 365 return "RETRY_COUNT_EXCEEDED";
366 case BackgroundSavePageResult.START_COUNT_EXCEEDED: 366 case BackgroundSavePageResult.START_COUNT_EXCEEDED:
367 return "START_COUNT_EXCEEDED"; 367 return "START_COUNT_EXCEEDED";
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 * The test is the entry point for all kinds of testing of SavePageLater. 480 * The test is the entry point for all kinds of testing of SavePageLater.
481 * It is encouraged to use run_offline_page_evaluation_test.py to run this t est. 481 * It is encouraged to use run_offline_page_evaluation_test.py to run this t est.
482 */ 482 */
483 @Manual 483 @Manual
484 public void testFailureRate() throws IOException, InterruptedException { 484 public void testFailureRate() throws IOException, InterruptedException {
485 parseConfigFile(); 485 parseConfigFile();
486 setUpIOAndBridge(mUseTestScheduler); 486 setUpIOAndBridge(mUseTestScheduler);
487 processUrls(mUrls); 487 processUrls(mUrls);
488 } 488 }
489 } 489 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/prerendering_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698