OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/autofill/autofill_profile.h" | |
18 #include "chrome/browser/autofill/autofill_type.h" | |
19 #include "chrome/browser/autofill/credit_card.h" | |
20 #include "chrome/browser/webdata/autofill_change.h" | 17 #include "chrome/browser/webdata/autofill_change.h" |
21 #include "chrome/browser/webdata/autofill_entry.h" | 18 #include "chrome/browser/webdata/autofill_entry.h" |
22 #include "chrome/browser/webdata/keyword_table.h" | 19 #include "chrome/browser/webdata/keyword_table.h" |
23 #include "chrome/browser/webdata/web_database.h" | 20 #include "chrome/browser/webdata/web_database.h" |
24 #include "chrome/browser/webdata/web_intents_table.h" | 21 #include "chrome/browser/webdata/web_intents_table.h" |
25 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
26 #include "chrome/test/base/ui_test_utils.h" | 23 #include "chrome/test/base/ui_test_utils.h" |
| 24 #include "components/autofill/browser/autofill_profile.h" |
| 25 #include "components/autofill/browser/autofill_type.h" |
| 26 #include "components/autofill/browser/credit_card.h" |
27 #include "content/public/test/test_browser_thread.h" | 27 #include "content/public/test/test_browser_thread.h" |
28 #include "sql/statement.h" | 28 #include "sql/statement.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 using base::Time; | 31 using base::Time; |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 void AutofillProfile31FromStatement(const sql::Statement& s, | 36 void AutofillProfile31FromStatement(const sql::Statement& s, |
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 ASSERT_TRUE(sql::MetaTable::DoesTableExist(&connection)); | 2093 ASSERT_TRUE(sql::MetaTable::DoesTableExist(&connection)); |
2094 | 2094 |
2095 // Check version. | 2095 // Check version. |
2096 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); | 2096 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); |
2097 | 2097 |
2098 // A new column should have been created. | 2098 // A new column should have been created. |
2099 EXPECT_TRUE(connection.DoesColumnExist("keywords", | 2099 EXPECT_TRUE(connection.DoesColumnExist("keywords", |
2100 "search_terms_replacement_key")); | 2100 "search_terms_replacement_key")); |
2101 } | 2101 } |
2102 } | 2102 } |
OLD | NEW |