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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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 <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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/history/expire_history_backend.cc ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698