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

Side by Side Diff: chrome/utility/importer/edge_database_reader_unittest_win.cc

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto crrev.com/1564773002 Created 4 years, 11 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string.h> 10 #include <string.h>
11 11
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
21 #include "components/compression/compression_utils.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/zlib/google/compression_utils.h"
23 23
24 namespace { 24 namespace {
25 25
26 class EdgeDatabaseReaderTest : public ::testing::Test { 26 class EdgeDatabaseReaderTest : public ::testing::Test {
27 protected: 27 protected:
28 bool CopyTestDatabase(const base::string16& database_name, 28 bool CopyTestDatabase(const base::string16& database_name,
29 base::FilePath* copied_path) { 29 base::FilePath* copied_path) {
30 base::FilePath input_path; 30 base::FilePath input_path;
31 input_path = test_data_path_.AppendASCII("edge_database_reader") 31 input_path = test_data_path_.AppendASCII("edge_database_reader")
32 .Append(database_name) 32 .Append(database_name)
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); 443 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error());
444 EXPECT_FALSE(table_enum->RetrieveColumn(L"GuidCol", &uint_col_value)); 444 EXPECT_FALSE(table_enum->RetrieveColumn(L"GuidCol", &uint_col_value));
445 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); 445 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error());
446 EXPECT_FALSE(table_enum->RetrieveColumn(L"DateCol", &uint_col_value)); 446 EXPECT_FALSE(table_enum->RetrieveColumn(L"DateCol", &uint_col_value));
447 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); 447 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error());
448 EXPECT_FALSE(table_enum->RetrieveColumn(L"StrCol", &uint_col_value)); 448 EXPECT_FALSE(table_enum->RetrieveColumn(L"StrCol", &uint_col_value));
449 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); 449 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error());
450 EXPECT_FALSE(table_enum->RetrieveColumn(L"BoolCol", &uint_col_value)); 450 EXPECT_FALSE(table_enum->RetrieveColumn(L"BoolCol", &uint_col_value));
451 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error()); 451 EXPECT_EQ(JET_errInvalidColumnType, table_enum->last_error());
452 } 452 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698