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

Side by Side Diff: chrome/common/media_galleries/picasa_test_util.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/media_galleries/pmp_test_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/common/media_galleries/picasa_test_util.h" 5 #include "chrome/common/media_galleries/picasa_test_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/common/media_galleries/picasa_types.h" 9 #include "chrome/common/media_galleries/picasa_types.h"
10 #include "chrome/common/media_galleries/pmp_test_util.h" 10 #include "chrome/common/media_galleries/pmp_test_util.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void WriteTestAlbumsImagesIndex(const base::FilePath& test_folder_1_path, 94 void WriteTestAlbumsImagesIndex(const base::FilePath& test_folder_1_path,
95 const base::FilePath& test_folder_2_path) { 95 const base::FilePath& test_folder_2_path) {
96 const char folder_1_test_ini[] = 96 const char folder_1_test_ini[] =
97 "[InBoth.jpg]\n" 97 "[InBoth.jpg]\n"
98 "albums=uid3,uid5\n" 98 "albums=uid3,uid5\n"
99 "[InSecondAlbumOnly.jpg]\n" 99 "[InSecondAlbumOnly.jpg]\n"
100 "albums=uid5\n"; 100 "albums=uid5\n";
101 ASSERT_TRUE( 101 ASSERT_TRUE(
102 file_util::WriteFile(test_folder_1_path.AppendASCII(kPicasaINIFilename), 102 base::WriteFile(test_folder_1_path.AppendASCII(kPicasaINIFilename),
103 folder_1_test_ini, 103 folder_1_test_ini,
104 arraysize(folder_1_test_ini))); 104 arraysize(folder_1_test_ini)));
105 105
106 const char folder_2_test_ini[] = 106 const char folder_2_test_ini[] =
107 "[InFirstAlbumOnly.jpg]\n" 107 "[InFirstAlbumOnly.jpg]\n"
108 "albums=uid3\n"; 108 "albums=uid3\n";
109 ASSERT_TRUE( 109 ASSERT_TRUE(
110 file_util::WriteFile(test_folder_2_path.AppendASCII(kPicasaINIFilename), 110 base::WriteFile(test_folder_2_path.AppendASCII(kPicasaINIFilename),
111 folder_2_test_ini, 111 folder_2_test_ini,
112 arraysize(folder_2_test_ini))); 112 arraysize(folder_2_test_ini)));
113 } 113 }
114 114
115 } // namespace picasa 115 } // namespace picasa
OLDNEW
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/media_galleries/pmp_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698