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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 static bool IsStringInFile(const base::FilePath& filename, const char* str); | 98 static bool IsStringInFile(const base::FilePath& filename, const char* str); |
99 | 99 |
100 // Returns the path the db files are created in. | 100 // Returns the path the db files are created in. |
101 const base::FilePath& path() const { return tmp_dir_.path(); } | 101 const base::FilePath& path() const { return tmp_dir_.path(); } |
102 | 102 |
103 // This must be destroyed last. | 103 // This must be destroyed last. |
104 base::ScopedTempDir tmp_dir_; | 104 base::ScopedTempDir tmp_dir_; |
105 | 105 |
106 BookmarkModel bookmark_model_; | 106 BookmarkModel bookmark_model_; |
107 | 107 |
108 MessageLoopForUI message_loop_; | 108 base::MessageLoopForUI message_loop_; |
109 content::TestBrowserThread ui_thread_; | 109 content::TestBrowserThread ui_thread_; |
110 content::TestBrowserThread db_thread_; | 110 content::TestBrowserThread db_thread_; |
111 | 111 |
112 ExpireHistoryBackend expirer_; | 112 ExpireHistoryBackend expirer_; |
113 | 113 |
114 scoped_ptr<HistoryDatabase> main_db_; | 114 scoped_ptr<HistoryDatabase> main_db_; |
115 scoped_ptr<ArchivedDatabase> archived_db_; | 115 scoped_ptr<ArchivedDatabase> archived_db_; |
116 scoped_ptr<ThumbnailDatabase> thumb_db_; | 116 scoped_ptr<ThumbnailDatabase> thumb_db_; |
117 scoped_ptr<TextDatabaseManager> text_db_; | 117 scoped_ptr<TextDatabaseManager> text_db_; |
118 TestingProfile profile_; | 118 TestingProfile profile_; |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 main_db_->GetVisitsForURL(url_id, &archived_visits); | 1026 main_db_->GetVisitsForURL(url_id, &archived_visits); |
1027 EXPECT_EQ(0U, archived_visits.size()); | 1027 EXPECT_EQ(0U, archived_visits.size()); |
1028 } | 1028 } |
1029 | 1029 |
1030 // TODO(brettw) add some visits with no URL to make sure everything is updated | 1030 // TODO(brettw) add some visits with no URL to make sure everything is updated |
1031 // properly. Have the visits also refer to nonexistent FTS rows. | 1031 // properly. Have the visits also refer to nonexistent FTS rows. |
1032 // | 1032 // |
1033 // Maybe also refer to invalid favicons. | 1033 // Maybe also refer to invalid favicons. |
1034 | 1034 |
1035 } // namespace history | 1035 } // namespace history |
OLD | NEW |