OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "app/sql/statement.h" | |
8 #include "base/file_util.h" | 7 #include "base/file_util.h" |
9 #include "base/scoped_temp_dir.h" | 8 #include "base/scoped_temp_dir.h" |
10 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
11 #include "base/string16.h" | 10 #include "base/string16.h" |
12 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
13 #include "base/time.h" | 12 #include "base/time.h" |
14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "chrome/browser/autofill/autofill_profile.h" | 15 #include "chrome/browser/autofill/autofill_profile.h" |
17 #include "chrome/browser/autofill/autofill_type.h" | 16 #include "chrome/browser/autofill/autofill_type.h" |
18 #include "chrome/browser/autofill/credit_card.h" | 17 #include "chrome/browser/autofill/credit_card.h" |
19 #include "chrome/browser/webdata/autofill_change.h" | 18 #include "chrome/browser/webdata/autofill_change.h" |
20 #include "chrome/browser/webdata/autofill_entry.h" | 19 #include "chrome/browser/webdata/autofill_entry.h" |
21 #include "chrome/browser/webdata/web_database.h" | 20 #include "chrome/browser/webdata/web_database.h" |
22 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
23 #include "chrome/common/guid.h" | 22 #include "chrome/common/guid.h" |
24 #include "chrome/test/ui_test_utils.h" | 23 #include "chrome/test/ui_test_utils.h" |
| 24 #include "sql/statement.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 using base::Time; | 27 using base::Time; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 void AutofillProfile31FromStatement(const sql::Statement& s, | 31 void AutofillProfile31FromStatement(const sql::Statement& s, |
32 AutofillProfile* profile, | 32 AutofillProfile* profile, |
33 string16* label, | 33 string16* label, |
34 int* unique_id, | 34 int* unique_id, |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 ASSERT_TRUE(connection.Open(GetDatabasePath())); | 1457 ASSERT_TRUE(connection.Open(GetDatabasePath())); |
1458 | 1458 |
1459 // Check version. | 1459 // Check version. |
1460 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); | 1460 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); |
1461 | 1461 |
1462 // |keywords| |last_modified| column should have been added. | 1462 // |keywords| |last_modified| column should have been added. |
1463 EXPECT_TRUE(connection.DoesColumnExist("keywords", "id")); | 1463 EXPECT_TRUE(connection.DoesColumnExist("keywords", "id")); |
1464 EXPECT_TRUE(connection.DoesColumnExist("keywords", "last_modified")); | 1464 EXPECT_TRUE(connection.DoesColumnExist("keywords", "last_modified")); |
1465 } | 1465 } |
1466 } | 1466 } |
OLD | NEW |