Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / bookmarks / test / mock_bookmark_model_observer.h
blobc502d0991a6c7ad37eb28ad751c0bb6b97da0068
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"
7 #include "url/gurl.h"
9 class MockBookmarkModelObserver : public BookmarkModelObserver {
10 public:
11 MockBookmarkModelObserver();
12 virtual ~MockBookmarkModelObserver();
14 MOCK_METHOD2(BookmarkModelLoaded, void(BookmarkModel*, bool));
16 MOCK_METHOD5(BookmarkNodeMoved, void(BookmarkModel*,
17 const BookmarkNode*,
18 int,
19 const BookmarkNode*,
20 int));
22 MOCK_METHOD3(BookmarkNodeAdded, void(BookmarkModel*,
23 const BookmarkNode*,
24 int));
26 MOCK_METHOD5(BookmarkNodeRemoved, void(BookmarkModel*,
27 const BookmarkNode*,
28 int,
29 const BookmarkNode*,
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>&));