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

Side by Side Diff: chrome/browser/history/in_memory_url_index_unittest.cc

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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
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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include <fstream> 7 #include <fstream>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "app/sql/connection.h"
12 #include "app/sql/statement.h"
13 #include "app/sql/transaction.h"
14 #include "base/file_path.h" 11 #include "base/file_path.h"
15 #include "base/file_util.h" 12 #include "base/file_util.h"
16 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
17 #include "base/path_service.h" 14 #include "base/path_service.h"
18 #include "base/string_util.h" 15 #include "base/string_util.h"
19 #include "base/time.h" 16 #include "base/time.h"
20 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/history/in_memory_database.h"
21 #include "chrome/browser/history/in_memory_url_index.h" 19 #include "chrome/browser/history/in_memory_url_index.h"
22 #include "chrome/browser/history/in_memory_database.h"
23 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
21 #include "sql/connection.h"
22 #include "sql/statement.h"
23 #include "sql/transaction.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 // The test version of the history url database table ('url') is contained in 26 // The test version of the history url database table ('url') is contained in
27 // a database file created from a text file('url_history_provider_test.db.txt'). 27 // a database file created from a text file('url_history_provider_test.db.txt').
28 // The only difference between this table and a live 'urls' table from a 28 // The only difference between this table and a live 'urls' table from a
29 // profile is that the last_visit_time column in the test table contains a 29 // profile is that the last_visit_time column in the test table contains a
30 // number specifying the number of days relative to 'today' to which the 30 // number specifying the number of days relative to 'today' to which the
31 // absolute time should be set during the test setup stage. 31 // absolute time should be set during the test setup stage.
32 // 32 //
33 // The format of the test database text file is of a SQLite .dump file. 33 // The format of the test database text file is of a SQLite .dump file.
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 const URLRow& expected_row(expected->second); 696 const URLRow& expected_row(expected->second);
697 const URLRow& actual_row(actual->second); 697 const URLRow& actual_row(actual->second);
698 EXPECT_EQ(expected_row.visit_count(), actual_row.visit_count()); 698 EXPECT_EQ(expected_row.visit_count(), actual_row.visit_count());
699 EXPECT_EQ(expected_row.typed_count(), actual_row.typed_count()); 699 EXPECT_EQ(expected_row.typed_count(), actual_row.typed_count());
700 EXPECT_EQ(expected_row.last_visit(), actual_row.last_visit()); 700 EXPECT_EQ(expected_row.last_visit(), actual_row.last_visit());
701 EXPECT_EQ(expected_row.url(), actual_row.url()); 701 EXPECT_EQ(expected_row.url(), actual_row.url());
702 } 702 }
703 } 703 }
704 704
705 } // namespace history 705 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index.h ('k') | chrome/browser/history/multipart_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698