summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_model_test_utils.h
blob: c8b794aad9891fe527612bf4ca732527f16cfd9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_
#pragma once

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(const BookmarkNode* expected,
                               const BookmarkNode* actual,
                               bool check_ids);
};

#endif  // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_TEST_UTILS_H_