| OLD | NEW |
| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_column_reader.h" |
| 11 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_constants.h" |
| 12 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_table_reader.h" |
| 13 #include "chrome/browser/media_galleries/fileapi/picasa/pmp_test_helper.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "webkit/fileapi/media/picasa/pmp_column_reader.h" | |
| 12 #include "webkit/fileapi/media/picasa/pmp_constants.h" | |
| 13 #include "webkit/fileapi/media/picasa/pmp_table_reader.h" | |
| 14 #include "webkit/fileapi/media/picasa/pmp_test_helper.h" | |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 using picasaimport::PmpTestHelper; | 18 using picasaimport::PmpTestHelper; |
| 19 | 19 |
| 20 TEST(PmpTableReaderTest, RowCountAndFieldType) { | 20 TEST(PmpTableReaderTest, RowCountAndFieldType) { |
| 21 PmpTestHelper test_helper; | 21 PmpTestHelper test_helper; |
| 22 ASSERT_TRUE(test_helper.Init()); | 22 ASSERT_TRUE(test_helper.Init()); |
| 23 | 23 |
| 24 std::string table_name = "testtable"; | 24 std::string table_name = "testtable"; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 const std::vector<const picasaimport::PmpColumnReader*> column_readers = | 64 const std::vector<const picasaimport::PmpColumnReader*> column_readers = |
| 65 table_reader.GetColumns(); | 65 table_reader.GetColumns(); |
| 66 | 66 |
| 67 for (int i = 0; i < 3; i++) { | 67 for (int i = 0; i < 3; i++) { |
| 68 EXPECT_EQ(column_field_types[i], column_readers[i]->field_type()); | 68 EXPECT_EQ(column_field_types[i], column_readers[i]->field_type()); |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace | 72 } // namespace |
| OLD | NEW |