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

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

Issue 1912: Renames BoomarkBarModel to BookmarkModel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/bookmarks/bookmark_bar_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/history/archived_database.h" 11 #include "chrome/browser/history/archived_database.h"
12 #include "chrome/browser/history/expire_history_backend.h" 12 #include "chrome/browser/history/expire_history_backend.h"
13 #include "chrome/browser/history/history_database.h" 13 #include "chrome/browser/history/history_database.h"
14 #include "chrome/browser/history/text_database_manager.h" 14 #include "chrome/browser/history/text_database_manager.h"
15 #include "chrome/browser/history/thumbnail_database.h" 15 #include "chrome/browser/history/thumbnail_database.h"
16 #include "chrome/common/jpeg_codec.h" 16 #include "chrome/common/jpeg_codec.h"
17 #include "chrome/common/notification_service.h" 17 #include "chrome/common/notification_service.h"
18 #include "chrome/common/thumbnail_score.h" 18 #include "chrome/common/thumbnail_score.h"
19 #include "chrome/tools/profiles/thumbnail-inl.h" 19 #include "chrome/tools/profiles/thumbnail-inl.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 notifications_.clear(); 58 notifications_.clear();
59 } 59 }
60 60
61 void StarURL(const GURL& url) { 61 void StarURL(const GURL& url) {
62 bookmark_model_.AddURL( 62 bookmark_model_.AddURL(
63 bookmark_model_.GetBookmarkBarNode(), 0, std::wstring(), url); 63 bookmark_model_.GetBookmarkBarNode(), 0, std::wstring(), url);
64 } 64 }
65 65
66 static bool IsStringInFile(std::wstring& filename, const char* str); 66 static bool IsStringInFile(std::wstring& filename, const char* str);
67 67
68 BookmarkBarModel bookmark_model_; 68 BookmarkModel bookmark_model_;
69 69
70 MessageLoop message_loop_; 70 MessageLoop message_loop_;
71 71
72 ExpireHistoryBackend expirer_; 72 ExpireHistoryBackend expirer_;
73 73
74 scoped_ptr<HistoryDatabase> main_db_; 74 scoped_ptr<HistoryDatabase> main_db_;
75 scoped_ptr<ArchivedDatabase> archived_db_; 75 scoped_ptr<ArchivedDatabase> archived_db_;
76 scoped_ptr<ThumbnailDatabase> thumb_db_; 76 scoped_ptr<ThumbnailDatabase> thumb_db_;
77 scoped_ptr<TextDatabaseManager> text_db_; 77 scoped_ptr<TextDatabaseManager> text_db_;
78 78
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // (max deleted). 689 // (max deleted).
690 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1)); 690 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1));
691 } 691 }
692 692
693 // TODO(brettw) add some visits with no URL to make sure everything is updated 693 // TODO(brettw) add some visits with no URL to make sure everything is updated
694 // properly. Have the visits also refer to nonexistant FTS rows. 694 // properly. Have the visits also refer to nonexistant FTS rows.
695 // 695 //
696 // Maybe also refer to invalid favicons. 696 // Maybe also refer to invalid favicons.
697 697
698 } // namespace history 698 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698