Chromium Code Reviews| Index: chrome/browser/bookmarks/test_bookmark_client.h |
| diff --git a/chrome/browser/bookmarks/test_bookmark_client.h b/chrome/browser/bookmarks/test_bookmark_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c52bfd349eb9e10eed0d18e4e4b1af4259a3ebdb |
| --- /dev/null |
| +++ b/chrome/browser/bookmarks/test_bookmark_client.h |
| @@ -0,0 +1,44 @@ |
| +// 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. |
| + |
| +#ifndef CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ |
| +#define CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ |
| + |
| +#include "components/bookmarks/core/browser/bookmark_client.h" |
| + |
| +class BookmarkModel; |
| + |
| +namespace test { |
| + |
| +class TestBookmarkClient : public BookmarkClient { |
| + public: |
| + TestBookmarkClient() {} |
| + virtual ~TestBookmarkClient() {} |
| + |
| + // Create a BookmarkModel using this object as its client. The returned |
| + // BookmarkModel* is owned by the caller. |
| + BookmarkModel* CreateModel(bool index_urls); |
|
sky
2014/04/23 20:32:07
Return scoped_ptr
sdefresne
2014/04/24 12:30:15
Done.
|
| + |
| + // BookmarkClient: |
| + virtual base::CancelableTaskTracker::TaskId GetFaviconImageForURL( |
| + const GURL& page_url, |
| + int icon_types, |
| + int desired_size_in_dip, |
| + const FaviconImageCallback& callback, |
| + base::CancelableTaskTracker* tracker) OVERRIDE; |
| + virtual bool SupportsTypedCountForNodes() OVERRIDE; |
| + virtual void GetTypedCountForNodes( |
| + const NodeSet& nodes, |
| + NodeTypedCountPairs* node_typed_count_pairs) OVERRIDE; |
| + virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; |
| + virtual void NotifyHistoryAboutRemovedBookmarks( |
| + const std::set<GURL>& removed_bookmark_urls) OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient); |
| +}; |
| + |
| +} // namespace test |
| + |
| +#endif // CHROME_BROWSER_BOOKMARKS_TEST_BOOKMARK_CLIENT_H_ |