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/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/webdata/keyword_table.h" | 18 #include "chrome/browser/webdata/keyword_table.h" |
19 #include "chrome/browser/webdata/logins_table.h" | 19 #include "chrome/browser/webdata/logins_table.h" |
20 #include "chrome/browser/webdata/token_service_table.h" | 20 #include "chrome/browser/webdata/token_service_table.h" |
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2018 ASSERT_TRUE(sql::MetaTable::DoesTableExist(&connection)); | 2018 ASSERT_TRUE(sql::MetaTable::DoesTableExist(&connection)); |
2019 | 2019 |
2020 // Check version. | 2020 // Check version. |
2021 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); | 2021 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); |
2022 | 2022 |
2023 // A new column should have been created in both tables. | 2023 // A new column should have been created in both tables. |
2024 EXPECT_TRUE(connection.DoesColumnExist("autofill_profiles", "origin")); | 2024 EXPECT_TRUE(connection.DoesColumnExist("autofill_profiles", "origin")); |
2025 EXPECT_TRUE(connection.DoesColumnExist("credit_cards", "origin")); | 2025 EXPECT_TRUE(connection.DoesColumnExist("credit_cards", "origin")); |
2026 } | 2026 } |
2027 } | 2027 } |
OLD | NEW |