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

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

Issue 99217: Implement ID persistence for bookmarks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/browser/bookmarks/bookmark_model_test_utils.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model_unittest.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_model_unittest.cc (revision 14989)
+++ chrome/browser/bookmarks/bookmark_model_unittest.cc (working copy)
@@ -3,8 +3,8 @@
// found in the LICENSE file.
#include "base/string_util.h"
-#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_codec.h"
+#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -118,31 +118,6 @@
ASSERT_EQ(reordered_count, reordered_count_);
}
- void AssertNodesEqual(BookmarkNode* expected, BookmarkNode* actual) {
- ASSERT_TRUE(expected);
- ASSERT_TRUE(actual);
- EXPECT_EQ(expected->GetTitle(), actual->GetTitle());
- EXPECT_EQ(expected->GetType(), actual->GetType());
- EXPECT_TRUE(expected->date_added() == actual->date_added());
- if (expected->GetType() == history::StarredEntry::URL) {
- EXPECT_EQ(expected->GetURL(), actual->GetURL());
- } else {
- EXPECT_TRUE(expected->date_group_modified() ==
- actual->date_group_modified());
- ASSERT_EQ(expected->GetChildCount(), actual->GetChildCount());
- for (int i = 0; i < expected->GetChildCount(); ++i)
- AssertNodesEqual(expected->GetChild(i), actual->GetChild(i));
- }
- }
-
- void AssertModelsEqual(BookmarkModel* expected,
- BookmarkModel* actual) {
- AssertNodesEqual(expected->GetBookmarkBarNode(),
- actual->GetBookmarkBarNode());
- AssertNodesEqual(expected->other_node(),
- actual->other_node());
- }
-
BookmarkModel model;
int moved_count;
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_test_utils.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698