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

Unified Diff: chrome/browser/bookmarks/bookmark_model_test_utils.h

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.cc ('k') | chrome/browser/bookmarks/bookmark_model_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model_test_utils.h
===================================================================
--- chrome/browser/bookmarks/bookmark_model_test_utils.h (revision 0)
+++ chrome/browser/bookmarks/bookmark_model_test_utils.h (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_
+#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_
+
+class BookmarkModel;
+class BookmarkNode;
+
+// Contains utilities for bookmark model related tests.
+class BookmarkModelTestUtils {
+ public:
+ // Verifies that the two given bookmark models are the same.
+ // The IDs of the bookmark nodes are compared only if check_ids is true.
+ static void AssertModelsEqual(BookmarkModel* expected,
+ BookmarkModel* actual,
+ bool check_ids);
+ private:
+ // Helper to verify the two given bookmark nodes.
+ // The IDs of the bookmark nodes are compared only if check_ids is true.
+ static void AssertNodesEqual(BookmarkNode* expected,
+ BookmarkNode* actual,
+ bool check_ids);
+};
+
+#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_
Property changes on: chrome\browser\bookmarks\bookmark_model_test_utils.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/bookmarks/bookmark_model_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698