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

Unified Diff: components/bookmarks/browser/bookmark_model_unittest.cc

Issue 1126933003: bookmarks: Rename BookmarkModelTestWithProfile to BookmarkModelTestClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_model_unittest.cc
diff --git a/components/bookmarks/browser/bookmark_model_unittest.cc b/components/bookmarks/browser/bookmark_model_unittest.cc
index 1f71f01a6286d39955bd2e404d3f7452138b2924..c5ff0774f258d30fbae5df3fe7d84239ae9b278c 100644
--- a/components/bookmarks/browser/bookmark_model_unittest.cc
+++ b/components/bookmarks/browser/bookmark_model_unittest.cc
@@ -905,10 +905,9 @@ void PopulateBookmarkNode(TestNode* parent,
}
}
-// Test class that creates a BookmarkModel with a real history backend.
-class BookmarkModelTestWithProfile : public testing::Test {
+class BookmarkModelTestClient : public testing::Test {
tfarina 2015/05/14 00:58:53 Scott, any suggestion for a better name?
sky 2015/05/14 15:13:56 I find your new name worse. The two functions in t
tfarina 2015/05/14 23:41:18 Ah, that way is much better! I moved the member fu
public:
- BookmarkModelTestWithProfile() {}
+ BookmarkModelTestClient() {}
protected:
// Verifies the contents of the bookmark bar node match the contents of the
@@ -943,12 +942,11 @@ class BookmarkModelTestWithProfile : public testing::Test {
scoped_ptr<BookmarkModel> model_;
};
-// Creates a set of nodes in the bookmark bar model, then recreates the
-// bookmark bar model which triggers loading from the db and checks the loaded
-// structure to make sure it is what we first created.
-TEST_F(BookmarkModelTestWithProfile, CreateAndRestore) {
+// Creates a set of nodes in the bookmark model, and checks that the loaded
+// structure is what we first created.
+TEST_F(BookmarkModelTestClient, CreateAndRestore) {
struct TestData {
- // Structure of the children of the bookmark bar model node.
+ // Structure of the children of the bookmark model node.
const std::string bbn_contents;
// Structure of the children of the other node.
const std::string other_contents;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698