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

Unified Diff: chrome/browser/chromeos/customization_document.h

Issue 253833006: Add browser test for CustomizationWallpaperDownloader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 6 years, 8 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
Index: chrome/browser/chromeos/customization_document.h
diff --git a/chrome/browser/chromeos/customization_document.h b/chrome/browser/chromeos/customization_document.h
index 97e166d82e193595447546e15faebff133f52f7b..5b37793f80e8350922bd85521f1dedcc24604226 100644
--- a/chrome/browser/chromeos/customization_document.h
+++ b/chrome/browser/chromeos/customization_document.h
@@ -194,8 +194,15 @@ class ServicesCustomizationDocument : public CustomizationDocument,
static base::FilePath GetCustomizedWallpaperCacheDir();
static base::FilePath GetCustomizedWallpaperDownloadedFileName();
+ // For testing
Daniel Erat 2014/05/05 14:17:29 delete unnecessary comment
Alexander Alekseev 2014/05/06 19:04:17 Done.
+ CustomizationWallpaperDownloader* GetWallpaperDownloaderForTesting() const;
Daniel Erat 2014/05/05 14:17:29 i think it's fine to inline this and make it into
Alexander Alekseev 2014/05/06 19:04:17 Done.
+
private:
friend struct DefaultSingletonTraits<ServicesCustomizationDocument>;
+ FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
+ OEMWallpaperIsPresent);
+ FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
+ OEMWallpaperRetryFetch);
typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> >
ExternalLoaders;

Powered by Google App Engine
This is Rietveld 408576698