// Copyright 2014 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. #include "components/bookmarks/browser/bookmark_model_observer.h" #include "testing/gmock/include/gmock/gmock.h" #include "url/gurl.h" namespace bookmarks { class MockBookmarkModelObserver : public BookmarkModelObserver { public: MockBookmarkModelObserver(); virtual ~MockBookmarkModelObserver(); MOCK_METHOD2(BookmarkModelLoaded, void(BookmarkModel*, bool)); MOCK_METHOD5(BookmarkNodeMoved, void(BookmarkModel*, const BookmarkNode*, int, const BookmarkNode*, int)); MOCK_METHOD3(BookmarkNodeAdded, void(BookmarkModel*, const BookmarkNode*, int)); MOCK_METHOD5(BookmarkNodeRemoved, void(BookmarkModel*, const BookmarkNode*, int, const BookmarkNode*, const std::set&)); MOCK_METHOD2(BookmarkNodeChanged, void(BookmarkModel*, const BookmarkNode*)); MOCK_METHOD2(BookmarkNodeFaviconChanged, void(BookmarkModel*, const BookmarkNode*)); MOCK_METHOD2(BookmarkNodeChildrenReordered, void(BookmarkModel*, const BookmarkNode*)); MOCK_METHOD2(BookmarkAllUserNodesRemoved, void(BookmarkModel*, const std::set&)); }; } // namespace bookmarks