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

Unified Diff: chrome/common/media_galleries/picasa_test_util.cc

Issue 23513059: Media Galleries API Picasa: End-to-end browsertest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 7 years, 3 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/common/media_galleries/picasa_test_util.cc
diff --git a/chrome/common/media_galleries/picasa_test_util.cc b/chrome/common/media_galleries/picasa_test_util.cc
index d99807576b88f51164e16d5980dfff1181a62755..d56e6f65350a4a8140b12246282bf455531ac71f 100644
--- a/chrome/common/media_galleries/picasa_test_util.cc
+++ b/chrome/common/media_galleries/picasa_test_util.cc
@@ -112,4 +112,9 @@ void WriteTestAlbumsImagesIndex(const base::FilePath& test_folder_1_path,
arraysize(folder_2_test_ini)));
}
+bool WriteJPEGHeader(const base::FilePath& path) {
+ const char kJpegHeader[] = "\xFF\xD8\xFF"; // Per HTML5 specification.
+ return file_util::WriteFile(path, kJpegHeader, arraysize(kJpegHeader)) != -1;
+}
+
} // namespace picasa

Powered by Google App Engine
This is Rietveld 408576698