OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class BookmarkModel; | 9 class BookmarkModel; |
10 class BookmarkNode; | 10 class BookmarkNode; |
11 | 11 |
12 // Contains utilities for bookmark model related tests. | 12 // Contains utilities for bookmark model related tests. |
13 class BookmarkModelTestUtils { | 13 class BookmarkModelTestUtils { |
14 public: | 14 public: |
15 // Verifies that the two given bookmark models are the same. | 15 // Verifies that the two given bookmark models are the same. |
16 // The IDs of the bookmark nodes are compared only if check_ids is true. | 16 // The IDs of the bookmark nodes are compared only if check_ids is true. |
17 static void AssertModelsEqual(BookmarkModel* expected, | 17 static void AssertModelsEqual(BookmarkModel* expected, |
18 BookmarkModel* actual, | 18 BookmarkModel* actual, |
19 bool check_ids); | 19 bool check_ids); |
20 private: | 20 |
21 // Helper to verify the two given bookmark nodes. | 21 // Helper to verify the two given bookmark nodes. |
22 // The IDs of the bookmark nodes are compared only if check_ids is true. | 22 // The IDs of the bookmark nodes are compared only if check_ids is true. |
23 static void AssertNodesEqual(const BookmarkNode* expected, | 23 static void AssertNodesEqual(const BookmarkNode* expected, |
24 const BookmarkNode* actual, | 24 const BookmarkNode* actual, |
25 bool check_ids); | 25 bool check_ids); |
26 }; | 26 }; |
27 | 27 |
28 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ | 28 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ |
OLD | NEW |