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

Side by Side Diff: chrome/browser/webdata/web_database_migration_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/autofill/autofill_profile.h" 15 #include "chrome/browser/autofill/autofill_profile.h"
16 #include "chrome/browser/autofill/autofill_type.h" 16 #include "chrome/browser/autofill/autofill_type.h"
17 #include "chrome/browser/autofill/credit_card.h" 17 #include "chrome/browser/autofill/credit_card.h"
18 #include "chrome/browser/webdata/autofill_change.h" 18 #include "chrome/browser/webdata/autofill_change.h"
19 #include "chrome/browser/webdata/autofill_entry.h" 19 #include "chrome/browser/webdata/autofill_entry.h"
20 #include "chrome/browser/webdata/web_database.h" 20 #include "chrome/browser/webdata/web_database.h"
21 #include "chrome/common/chrome_paths.h" 21 #include "chrome/common/chrome_paths.h"
22 #include "chrome/common/guid.h" 22 #include "chrome/common/guid.h"
23 #include "chrome/test/base/testing_browser_process_test.h"
23 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
24 #include "chrome/test/testing_browser_process_test.h"
25 #include "sql/statement.h" 25 #include "sql/statement.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 27
28 using base::Time; 28 using base::Time;
29 29
30 namespace { 30 namespace {
31 31
32 void AutofillProfile31FromStatement(const sql::Statement& s, 32 void AutofillProfile31FromStatement(const sql::Statement& s,
33 AutofillProfile* profile, 33 AutofillProfile* profile,
34 string16* label, 34 string16* label,
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 ASSERT_TRUE(connection.Open(GetDatabasePath())); 1498 ASSERT_TRUE(connection.Open(GetDatabasePath()));
1499 1499
1500 // Check version. 1500 // Check version.
1501 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection)); 1501 EXPECT_EQ(kCurrentTestedVersionNumber, VersionFromConnection(&connection));
1502 1502
1503 // |keywords| |sync_guid| column should have been added. 1503 // |keywords| |sync_guid| column should have been added.
1504 EXPECT_TRUE(connection.DoesColumnExist("keywords", "id")); 1504 EXPECT_TRUE(connection.DoesColumnExist("keywords", "id"));
1505 EXPECT_TRUE(connection.DoesColumnExist("keywords", "sync_guid")); 1505 EXPECT_TRUE(connection.DoesColumnExist("keywords", "sync_guid"));
1506 } 1506 }
1507 } 1507 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698