Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: components/webdata/common/web_database_migration_unittest.cc

Issue 380023002: Move Password specific webdata logic into passwords component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/webdata/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/webdata/logins_table.h"
20 #include "chrome/browser/webdata/web_apps_table.h" 19 #include "chrome/browser/webdata/web_apps_table.h"
21 #include "chrome/browser/webdata/web_intents_table.h" 20 #include "chrome/browser/webdata/web_intents_table.h"
22 #include "components/autofill/core/browser/autofill_country.h" 21 #include "components/autofill/core/browser/autofill_country.h"
23 #include "components/autofill/core/browser/autofill_profile.h" 22 #include "components/autofill/core/browser/autofill_profile.h"
24 #include "components/autofill/core/browser/autofill_type.h" 23 #include "components/autofill/core/browser/autofill_type.h"
25 #include "components/autofill/core/browser/credit_card.h" 24 #include "components/autofill/core/browser/credit_card.h"
26 #include "components/autofill/core/browser/webdata/autofill_change.h" 25 #include "components/autofill/core/browser/webdata/autofill_change.h"
27 #include "components/autofill/core/browser/webdata/autofill_entry.h" 26 #include "components/autofill/core/browser/webdata/autofill_entry.h"
28 #include "components/autofill/core/browser/webdata/autofill_table.h" 27 #include "components/autofill/core/browser/webdata/autofill_table.h"
28 #include "components/password_manager/core/browser/webdata/logins_table.h"
29 #include "components/search_engines/keyword_table.h" 29 #include "components/search_engines/keyword_table.h"
30 #include "components/signin/core/browser/webdata/token_service_table.h" 30 #include "components/signin/core/browser/webdata/token_service_table.h"
31 #include "components/webdata/common/web_database.h" 31 #include "components/webdata/common/web_database.h"
32 #include "sql/statement.h" 32 #include "sql/statement.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 34
35 using autofill::AutofillProfile; 35 using autofill::AutofillProfile;
36 using autofill::AutofillTable; 36 using autofill::AutofillTable;
37 using autofill::CreditCard; 37 using autofill::CreditCard;
38 using base::ASCIIToUTF16; 38 using base::ASCIIToUTF16;
(...skipping 2687 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 EXPECT_EQ("B41FE6E0-B13E-2A2A-BF0B-29FCE2C3ADBD", s_names.ColumnString(0)); 2726 EXPECT_EQ("B41FE6E0-B13E-2A2A-BF0B-29FCE2C3ADBD", s_names.ColumnString(0));
2727 EXPECT_EQ(ASCIIToUTF16("Jon"), s_names.ColumnString16(1)); 2727 EXPECT_EQ(ASCIIToUTF16("Jon"), s_names.ColumnString16(1));
2728 EXPECT_EQ(base::string16(), s_names.ColumnString16(2)); 2728 EXPECT_EQ(base::string16(), s_names.ColumnString16(2));
2729 EXPECT_EQ(ASCIIToUTF16("Smith"), s_names.ColumnString16(3)); 2729 EXPECT_EQ(ASCIIToUTF16("Smith"), s_names.ColumnString16(3));
2730 EXPECT_EQ(base::string16(), s_names.ColumnString16(4)); 2730 EXPECT_EQ(base::string16(), s_names.ColumnString16(4));
2731 2731
2732 // No more entries expected. 2732 // No more entries expected.
2733 ASSERT_FALSE(s_names.Step()); 2733 ASSERT_FALSE(s_names.Step());
2734 } 2734 }
2735 } 2735 }
OLDNEW
« no previous file with comments | « components/webdata/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698