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/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" | |
21 #include "chrome/browser/webdata/web_apps_table.h" | 20 #include "chrome/browser/webdata/web_apps_table.h" |
22 #include "chrome/browser/webdata/web_intents_table.h" | 21 #include "chrome/browser/webdata/web_intents_table.h" |
23 #include "components/autofill/core/browser/autofill_country.h" | 22 #include "components/autofill/core/browser/autofill_country.h" |
24 #include "components/autofill/core/browser/autofill_profile.h" | 23 #include "components/autofill/core/browser/autofill_profile.h" |
25 #include "components/autofill/core/browser/autofill_type.h" | 24 #include "components/autofill/core/browser/autofill_type.h" |
26 #include "components/autofill/core/browser/credit_card.h" | 25 #include "components/autofill/core/browser/credit_card.h" |
27 #include "components/autofill/core/browser/webdata/autofill_change.h" | 26 #include "components/autofill/core/browser/webdata/autofill_change.h" |
28 #include "components/autofill/core/browser/webdata/autofill_entry.h" | 27 #include "components/autofill/core/browser/webdata/autofill_entry.h" |
29 #include "components/autofill/core/browser/webdata/autofill_table.h" | 28 #include "components/autofill/core/browser/webdata/autofill_table.h" |
| 29 #include "components/signin/core/webdata/token_service_table.h" |
30 #include "components/webdata/common/web_database.h" | 30 #include "components/webdata/common/web_database.h" |
31 #include "sql/statement.h" | 31 #include "sql/statement.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 | 33 |
34 using autofill::AutofillProfile; | 34 using autofill::AutofillProfile; |
35 using autofill::AutofillTable; | 35 using autofill::AutofillTable; |
36 using autofill::CreditCard; | 36 using autofill::CreditCard; |
37 using base::ASCIIToUTF16; | 37 using base::ASCIIToUTF16; |
38 using base::Time; | 38 using base::Time; |
39 | 39 |
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 EXPECT_EQ("00000000-0000-0000-0000-000000000003", s_phones.ColumnString(0)); | 2263 EXPECT_EQ("00000000-0000-0000-0000-000000000003", s_phones.ColumnString(0)); |
2264 EXPECT_EQ(ASCIIToUTF16("6505557890"), s_phones.ColumnString16(1)); | 2264 EXPECT_EQ(ASCIIToUTF16("6505557890"), s_phones.ColumnString16(1)); |
2265 | 2265 |
2266 ASSERT_TRUE(s_phones.Step()); | 2266 ASSERT_TRUE(s_phones.Step()); |
2267 EXPECT_EQ("00000000-0000-0000-0000-000000000004", s_phones.ColumnString(0)); | 2267 EXPECT_EQ("00000000-0000-0000-0000-000000000004", s_phones.ColumnString(0)); |
2268 EXPECT_EQ(base::string16(), s_phones.ColumnString16(1)); | 2268 EXPECT_EQ(base::string16(), s_phones.ColumnString16(1)); |
2269 | 2269 |
2270 EXPECT_FALSE(s_phones.Step()); | 2270 EXPECT_FALSE(s_phones.Step()); |
2271 } | 2271 } |
2272 } | 2272 } |
OLD | NEW |