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

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa/pmp_test_helper.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
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/browser/media_galleries/fileapi/picasa/pmp_test_helper.h" 5 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_test_helper.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader.h" 13 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader.h"
14 14
15 namespace picasa { 15 namespace picasa {
16 16
17 namespace { 17 namespace {
18 18
19 bool WriteToFile(const base::FilePath& path, std::vector<uint8> data) { 19 bool WriteToFile(const base::FilePath& path, std::vector<uint8> data) {
20 // Cast for usage in WriteFile function 20 // Cast for usage in WriteFile function
21 const char* data_char = reinterpret_cast<const char*>(&data[0]); 21 const char* data_char = reinterpret_cast<const char*>(&data[0]);
22 size_t bytes_written = file_util::WriteFile(path, data_char, data.size()); 22 size_t bytes_written = file_util::WriteFile(path, data_char, data.size());
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint32>( 173 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint32>(
174 const PmpFieldType, const uint32, const std::vector<uint32>&); 174 const PmpFieldType, const uint32, const std::vector<uint32>&);
175 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<double>( 175 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<double>(
176 const PmpFieldType, const uint32, const std::vector<double>&); 176 const PmpFieldType, const uint32, const std::vector<double>&);
177 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint8>( 177 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint8>(
178 const PmpFieldType, const uint32, const std::vector<uint8>&); 178 const PmpFieldType, const uint32, const std::vector<uint8>&);
179 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint64>( 179 template std::vector<uint8> PmpTestHelper::MakeHeaderAndBody<uint64>(
180 const PmpFieldType, const uint32, const std::vector<uint64>&); 180 const PmpFieldType, const uint32, const std::vector<uint64>&);
181 181
182 } // namespace picasa 182 } // namespace picasa
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698