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

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: Created 7 years, 7 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 static bool IsStringInFile(const base::FilePath& filename, const char* str); 97 static bool IsStringInFile(const base::FilePath& filename, const char* str);
98 98
99 // Returns the path the db files are created in. 99 // Returns the path the db files are created in.
100 const base::FilePath& path() const { return tmp_dir_.path(); } 100 const base::FilePath& path() const { return tmp_dir_.path(); }
101 101
102 // This must be destroyed last. 102 // This must be destroyed last.
103 base::ScopedTempDir tmp_dir_; 103 base::ScopedTempDir tmp_dir_;
104 104
105 BookmarkModel bookmark_model_; 105 BookmarkModel bookmark_model_;
106 106
107 MessageLoopForUI message_loop_; 107 base::MessageLoopForUI message_loop_;
108 content::TestBrowserThread ui_thread_; 108 content::TestBrowserThread ui_thread_;
109 content::TestBrowserThread db_thread_; 109 content::TestBrowserThread db_thread_;
110 110
111 ExpireHistoryBackend expirer_; 111 ExpireHistoryBackend expirer_;
112 112
113 scoped_ptr<HistoryDatabase> main_db_; 113 scoped_ptr<HistoryDatabase> main_db_;
114 scoped_ptr<ArchivedDatabase> archived_db_; 114 scoped_ptr<ArchivedDatabase> archived_db_;
115 scoped_ptr<ThumbnailDatabase> thumb_db_; 115 scoped_ptr<ThumbnailDatabase> thumb_db_;
116 scoped_ptr<TextDatabaseManager> text_db_; 116 scoped_ptr<TextDatabaseManager> text_db_;
117 TestingProfile profile_; 117 TestingProfile profile_;
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 main_db_->GetVisitsForURL(url_id, &archived_visits); 1021 main_db_->GetVisitsForURL(url_id, &archived_visits);
1022 EXPECT_EQ(0U, archived_visits.size()); 1022 EXPECT_EQ(0U, archived_visits.size());
1023 } 1023 }
1024 1024
1025 // TODO(brettw) add some visits with no URL to make sure everything is updated 1025 // TODO(brettw) add some visits with no URL to make sure everything is updated
1026 // properly. Have the visits also refer to nonexistent FTS rows. 1026 // properly. Have the visits also refer to nonexistent FTS rows.
1027 // 1027 //
1028 // Maybe also refer to invalid favicons. 1028 // Maybe also refer to invalid favicons.
1029 1029
1030 } // namespace history 1030 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698