1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/bookmarks/browser/bookmark_model_observer.h"
6 #include "testing/gmock/include/gmock/gmock.h"
9 class MockBookmarkModelObserver
: public BookmarkModelObserver
{
11 MockBookmarkModelObserver();
12 virtual ~MockBookmarkModelObserver();
14 MOCK_METHOD2(BookmarkModelLoaded
, void(BookmarkModel
*, bool));
16 MOCK_METHOD5(BookmarkNodeMoved
, void(BookmarkModel
*,
22 MOCK_METHOD3(BookmarkNodeAdded
, void(BookmarkModel
*,
26 MOCK_METHOD5(BookmarkNodeRemoved
, void(BookmarkModel
*,
30 const std::set
<GURL
>&));
32 MOCK_METHOD2(BookmarkNodeChanged
, void(BookmarkModel
*, const BookmarkNode
*));
34 MOCK_METHOD2(BookmarkNodeFaviconChanged
, void(BookmarkModel
*,
35 const BookmarkNode
*));
37 MOCK_METHOD2(BookmarkNodeChildrenReordered
, void(BookmarkModel
*,
38 const BookmarkNode
*));
40 MOCK_METHOD2(BookmarkAllUserNodesRemoved
, void(BookmarkModel
*,
41 const std::set
<GURL
>&));