OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/utility/importer/edge_database_reader_win.h" | 5 #include "chrome/utility/importer/edge_database_reader_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 #include <string.h> |
8 | 11 |
9 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/macros.h" |
11 #include "base/path_service.h" | 15 #include "base/path_service.h" |
12 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
15 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
16 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
17 #include "components/compression/compression_utils.h" | 21 #include "components/compression/compression_utils.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
19 | 23 |
20 namespace { | 24 namespace { |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); | 443 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); |
440 EXPECT_FALSE(table_enum->RetrieveColumn(L"GuidCol", &uint_col_value)); | 444 EXPECT_FALSE(table_enum->RetrieveColumn(L"GuidCol", &uint_col_value)); |
441 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); | 445 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); |
442 EXPECT_FALSE(table_enum->RetrieveColumn(L"DateCol", &uint_col_value)); | 446 EXPECT_FALSE(table_enum->RetrieveColumn(L"DateCol", &uint_col_value)); |
443 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); | 447 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); |
444 EXPECT_FALSE(table_enum->RetrieveColumn(L"StrCol", &uint_col_value)); | 448 EXPECT_FALSE(table_enum->RetrieveColumn(L"StrCol", &uint_col_value)); |
445 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); | 449 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); |
446 EXPECT_FALSE(table_enum->RetrieveColumn(L"BoolCol", &uint_col_value)); | 450 EXPECT_FALSE(table_enum->RetrieveColumn(L"BoolCol", &uint_col_value)); |
447 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); | 451 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); |
448 } | 452 } |
OLD | NEW |