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/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/autofill/autofill_profile.h" | 16 #include "chrome/browser/autofill/autofill_profile.h" |
17 #include "chrome/browser/autofill/autofill_type.h" | 17 #include "chrome/browser/autofill/autofill_type.h" |
18 #include "chrome/browser/autofill/credit_card.h" | 18 #include "chrome/browser/autofill/credit_card.h" |
19 #include "chrome/browser/webdata/autofill_change.h" | 19 #include "chrome/browser/webdata/autofill_change.h" |
20 #include "chrome/browser/webdata/autofill_entry.h" | 20 #include "chrome/browser/webdata/autofill_entry.h" |
21 #include "chrome/browser/webdata/keyword_table.h" | 21 #include "chrome/browser/webdata/keyword_table.h" |
22 #include "chrome/browser/webdata/web_database.h" | 22 #include "chrome/browser/webdata/web_database.h" |
23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/common/guid.h" | 24 #include "chrome/common/guid.h" |
25 #include "chrome/test/base/ui_test_utils.h" | 25 #include "chrome/test/base/ui_test_utils.h" |
26 #include "content/test/test_browser_thread.h" | 26 #include "content/public/test/test_browser_thread.h" |
27 #include "sql/statement.h" | 27 #include "sql/statement.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 | 29 |
30 using base::Time; | 30 using base::Time; |
31 using content::BrowserThread; | 31 using content::BrowserThread; |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 void AutofillProfile31FromStatement(const sql::Statement& s, | 35 void AutofillProfile31FromStatement(const sql::Statement& s, |
36 AutofillProfile* profile, | 36 AutofillProfile* profile, |
(...skipping 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 | 2013 |
2014 // Two columns should have been removed. | 2014 // Two columns should have been removed. |
2015 EXPECT_FALSE(connection.DoesColumnExist("keywords", | 2015 EXPECT_FALSE(connection.DoesColumnExist("keywords", |
2016 "autogenerate_keyword")); | 2016 "autogenerate_keyword")); |
2017 EXPECT_FALSE(connection.DoesColumnExist("keywords", "logo_id")); | 2017 EXPECT_FALSE(connection.DoesColumnExist("keywords", "logo_id")); |
2018 | 2018 |
2019 // The backup table should be gone. | 2019 // The backup table should be gone. |
2020 EXPECT_FALSE(connection.DoesTableExist("keywords_backup")); | 2020 EXPECT_FALSE(connection.DoesTableExist("keywords_backup")); |
2021 } | 2021 } |
2022 } | 2022 } |
OLD | NEW |