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

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

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
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"
(...skipping 16 matching lines...) Expand all
27 #include "components/autofill/core/browser/webdata/autofill_change.h" 27 #include "components/autofill/core/browser/webdata/autofill_change.h"
28 #include "components/autofill/core/browser/webdata/autofill_entry.h" 28 #include "components/autofill/core/browser/webdata/autofill_entry.h"
29 #include "components/autofill/core/browser/webdata/autofill_table.h" 29 #include "components/autofill/core/browser/webdata/autofill_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::Time; 38 using base::Time;
38 39
39 namespace { 40 namespace {
40 41
41 void AutofillProfile31FromStatement(const sql::Statement& s, 42 void AutofillProfile31FromStatement(const sql::Statement& s,
42 AutofillProfile* profile, 43 AutofillProfile* profile,
43 base::string16* label, 44 base::string16* label,
44 int* unique_id, 45 int* unique_id,
45 int64* date_modified) { 46 int64* date_modified) {
46 DCHECK(profile); 47 DCHECK(profile);
(...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 EXPECT_EQ("00000000-0000-0000-0000-000000000003", s_phones.ColumnString(0)); 2263 EXPECT_EQ("00000000-0000-0000-0000-000000000003", s_phones.ColumnString(0));
2263 EXPECT_EQ(ASCIIToUTF16("6505557890"), s_phones.ColumnString16(1)); 2264 EXPECT_EQ(ASCIIToUTF16("6505557890"), s_phones.ColumnString16(1));
2264 2265
2265 ASSERT_TRUE(s_phones.Step()); 2266 ASSERT_TRUE(s_phones.Step());
2266 EXPECT_EQ("00000000-0000-0000-0000-000000000004", s_phones.ColumnString(0)); 2267 EXPECT_EQ("00000000-0000-0000-0000-000000000004", s_phones.ColumnString(0));
2267 EXPECT_EQ(base::string16(), s_phones.ColumnString16(1)); 2268 EXPECT_EQ(base::string16(), s_phones.ColumnString16(1));
2268 2269
2269 EXPECT_FALSE(s_phones.Step()); 2270 EXPECT_FALSE(s_phones.Step());
2270 } 2271 }
2271 } 2272 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698