| Index: components/history/core/browser/history_client_mock_bookmarks.h
|
| diff --git a/components/history/core/browser/history_client_mock_bookmarks.h b/components/history/core/browser/history_client_mock_bookmarks.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a8490ca2092e8ba4b3f0dcfac4b6e2dc6ca6ffea
|
| --- /dev/null
|
| +++ b/components/history/core/browser/history_client_mock_bookmarks.h
|
| @@ -0,0 +1,35 @@
|
| +// 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_MOCK_BOOKMARKS_H_
|
| +#define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_MOCK_BOOKMARKS_H_
|
| +
|
| +#include <set>
|
| +
|
| +#include "components/history/core/browser/test_history_client.h"
|
| +
|
| +namespace history {
|
| +
|
| +class HistoryClientMockBookmarks : public TestHistoryClient {
|
| + public:
|
| + HistoryClientMockBookmarks();
|
| + virtual ~HistoryClientMockBookmarks();
|
| +
|
| + void ClearAllBookmarks();
|
| + void AddBookmark(const GURL& url);
|
| + void DelBookmark(const GURL& url);
|
| +
|
| + // HistoryClient:
|
| + bool IsBookmarked(const GURL& url) OVERRIDE;
|
| + void GetBookmarks(std::vector<URLAndTitle>* bookmarks) OVERRIDE;
|
| +
|
| + private:
|
| + std::set<GURL> bookmarked_urls_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(HistoryClientMockBookmarks);
|
| +};
|
| +
|
| +} // namespace history
|
| +
|
| +#endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_MOCK_BOOKMARKS_H_
|
|
|