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

Side by Side 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: Implemented set_retry_delay_for_testing. Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_
6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ 6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 static void ShutdownForTesting(); 189 static void ShutdownForTesting();
190 190
191 // These methods are also called by WallpaperManager to get "global default" 191 // These methods are also called by WallpaperManager to get "global default"
192 // customized wallpaper path (and to init default wallpaper path from it) 192 // customized wallpaper path (and to init default wallpaper path from it)
193 // before first wallpaper is shown. 193 // before first wallpaper is shown.
194 static base::FilePath GetCustomizedWallpaperCacheDir(); 194 static base::FilePath GetCustomizedWallpaperCacheDir();
195 static base::FilePath GetCustomizedWallpaperDownloadedFileName(); 195 static base::FilePath GetCustomizedWallpaperDownloadedFileName();
196 196
197 private: 197 private:
198 friend struct DefaultSingletonTraits<ServicesCustomizationDocument>; 198 friend struct DefaultSingletonTraits<ServicesCustomizationDocument>;
199 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
200 OEMWallpaperIsPresent);
201 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
202 OEMWallpaperRetryFetch);
203
204 // This class is used in tests.
205 friend class TestWallpaperImageURLFetcherCallback;
Daniel Erat 2014/04/30 21:23:06 can you remove the friends if you just add a publi
Alexander Alekseev 2014/05/04 23:30:56 Done.
199 206
200 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > 207 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> >
201 ExternalLoaders; 208 ExternalLoaders;
202 209
203 // Guard for a single application task (wallpaper downloading, for example). 210 // Guard for a single application task (wallpaper downloading, for example).
204 class ApplyingTask; 211 class ApplyingTask;
205 212
206 // C-tor for singleton construction. 213 // C-tor for singleton construction.
207 ServicesCustomizationDocument(); 214 ServicesCustomizationDocument();
208 215
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 325
319 // Weak factory for callbacks. 326 // Weak factory for callbacks.
320 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; 327 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_;
321 328
322 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); 329 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument);
323 }; 330 };
324 331
325 } // namespace chromeos 332 } // namespace chromeos
326 333
327 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ 334 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698