| 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/files/file_util.h" | 7 #include "base/files/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/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 12 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 18 #include "base/values.h" | 19 #include "base/values.h" |
| 19 #include "components/autofill/core/browser/autofill_country.h" | 20 #include "components/autofill/core/browser/autofill_country.h" |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 EXPECT_TRUE(connection.DoesTableExist("server_address_metadata")); | 971 EXPECT_TRUE(connection.DoesTableExist("server_address_metadata")); |
| 971 | 972 |
| 972 sql::Statement read_profiles( | 973 sql::Statement read_profiles( |
| 973 connection.GetUniqueStatement( | 974 connection.GetUniqueStatement( |
| 974 "SELECT id, postal_code FROM server_addresses")); | 975 "SELECT id, postal_code FROM server_addresses")); |
| 975 ASSERT_TRUE(read_profiles.Step()); | 976 ASSERT_TRUE(read_profiles.Step()); |
| 976 EXPECT_FALSE(read_profiles.ColumnString(0).empty()); | 977 EXPECT_FALSE(read_profiles.ColumnString(0).empty()); |
| 977 EXPECT_EQ("90210", read_profiles.ColumnString(1)); | 978 EXPECT_EQ("90210", read_profiles.ColumnString(1)); |
| 978 } | 979 } |
| 979 } | 980 } |
| OLD | NEW |