Add ICU message format support
[chromium-blink-merge.git] / chrome / common / media_galleries / pmp_test_util.h
blobd3f5d3a6360e8890b254890746ff4553acafbe57
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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_MEDIA_GALLERIES_PMP_TEST_UTIL_H_
6 #define CHROME_COMMON_MEDIA_GALLERIES_PMP_TEST_UTIL_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/files/file_path.h"
13 #include "base/files/scoped_temp_dir.h"
14 #include "chrome/common/media_galleries/pmp_constants.h"
16 namespace picasa {
18 namespace PmpTestUtil {
20 bool WriteIndicatorFile(
21 const base::FilePath& column_file_destination,
22 const std::string& table_name);
24 template<class T>
25 bool WriteColumnFileFromVector(
26 const base::FilePath& column_file_destination,
27 const std::string& table_name,
28 const std::string& column_name,
29 const PmpFieldType field_type,
30 const std::vector<T>& elements_vector);
32 std::vector<char> MakeHeader(const PmpFieldType field_type,
33 const uint32 row_count);
35 template<class T>
36 std::vector<char> MakeHeaderAndBody(const PmpFieldType field_type,
37 const uint32 row_count,
38 const std::vector<T>& elems);
40 } // namespace PmpTestUtil
42 } // namespace picasa
44 #endif // CHROME_COMMON_MEDIA_GALLERIES_PMP_TEST_UTIL_H_