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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model_test_utils.h

Issue 10700155: Remove #pragma once from chrome/browser/{printing,safe_browsing,prefs,bookmarks,autocomplete} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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-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
8 7
9 class BookmarkModel; 8 class BookmarkModel;
10 class BookmarkNode; 9 class BookmarkNode;
11 10
12 // Contains utilities for bookmark model related tests. 11 // Contains utilities for bookmark model related tests.
13 class BookmarkModelTestUtils { 12 class BookmarkModelTestUtils {
14 public: 13 public:
15 // Verifies that the two given bookmark models are the same. 14 // 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. 15 // The IDs of the bookmark nodes are compared only if check_ids is true.
17 static void AssertModelsEqual(BookmarkModel* expected, 16 static void AssertModelsEqual(BookmarkModel* expected,
18 BookmarkModel* actual, 17 BookmarkModel* actual,
19 bool check_ids); 18 bool check_ids);
20 private: 19 private:
21 // Helper to verify the two given bookmark nodes. 20 // Helper to verify the two given bookmark nodes.
22 // The IDs of the bookmark nodes are compared only if check_ids is true. 21 // The IDs of the bookmark nodes are compared only if check_ids is true.
23 static void AssertNodesEqual(const BookmarkNode* expected, 22 static void AssertNodesEqual(const BookmarkNode* expected,
24 const BookmarkNode* actual, 23 const BookmarkNode* actual,
25 bool check_ids); 24 bool check_ids);
26 }; 25 };
27 26
28 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_ 27 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_observer.h ('k') | chrome/browser/bookmarks/bookmark_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698