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

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_data_provider_browsertest.cc

Issue 164403002: s/seperator/separator in a couple places (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/browser/enumerate_modules_model_win.cc ('k') | no next file » | 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 library_changed_callback_.Run(); 167 library_changed_callback_.Run();
168 library_changed_callback_.Reset(); 168 library_changed_callback_.Reset();
169 } 169 }
170 } 170 }
171 171
172 void WriteLibraryInternal(const std::vector<LibraryEntry>& entries) { 172 void WriteLibraryInternal(const std::vector<LibraryEntry>& entries) {
173 if (!entries.size()) 173 if (!entries.size())
174 return; 174 return;
175 std::string xml = "<plist><dict><key>Tracks</key><dict>\n"; 175 std::string xml = "<plist><dict><key>Tracks</key><dict>\n";
176 for (size_t i = 0; i < entries.size(); ++i) { 176 for (size_t i = 0; i < entries.size(); ++i) {
177 std::string seperator; 177 std::string separator;
178 #if defined(OS_WIN) 178 #if defined(OS_WIN)
179 seperator = "/"; 179 separator = "/";
180 #endif 180 #endif
181 GURL location("file://localhost" + seperator + 181 GURL location("file://localhost" + separator +
182 entries[i].location.AsUTF8Unsafe()); 182 entries[i].location.AsUTF8Unsafe());
183 std::string entry_string = base::StringPrintf( 183 std::string entry_string = base::StringPrintf(
184 "<key>%" PRIuS "</key><dict>\n" 184 "<key>%" PRIuS "</key><dict>\n"
185 " <key>Track ID</key><integer>%" PRIuS "</integer>\n" 185 " <key>Track ID</key><integer>%" PRIuS "</integer>\n"
186 " <key>Location</key><string>%s</string>\n" 186 " <key>Location</key><string>%s</string>\n"
187 " <key>Artist</key><string>%s</string>\n" 187 " <key>Artist</key><string>%s</string>\n"
188 " <key>Album</key><string>%s</string>\n" 188 " <key>Album</key><string>%s</string>\n"
189 "</dict>\n", 189 "</dict>\n",
190 i + 1, i + 1, location.spec().c_str(), entries[i].artist.c_str(), 190 i + 1, i + 1, location.spec().c_str(), entries[i].artist.c_str(),
191 entries[i].album.c_str()); 191 entries[i].album.c_str());
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 IN_PROC_BROWSER_TEST_F(ITunesDataProviderUniqueNameTest, UniqueNameTest) { 453 IN_PROC_BROWSER_TEST_F(ITunesDataProviderUniqueNameTest, UniqueNameTest) {
454 RunTest(); 454 RunTest();
455 } 455 }
456 456
457 IN_PROC_BROWSER_TEST_F(ITunesDataProviderEscapeTest, EscapeTest) { 457 IN_PROC_BROWSER_TEST_F(ITunesDataProviderEscapeTest, EscapeTest) {
458 RunTest(); 458 RunTest();
459 } 459 }
460 460
461 } // namespace itunes 461 } // namespace itunes
OLDNEW
« no previous file with comments | « chrome/browser/enumerate_modules_model_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698