Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: components/bookmarks/test/test_bookmark_client.h

Issue 510533002: Omnibox: Make URLs of Bookmarks Searchable - Try 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's minor comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_ 5 #ifndef COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_
6 #define COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_ 6 #define COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/bookmarks/browser/bookmark_client.h" 9 #include "components/bookmarks/browser/bookmark_client.h"
10 10
11 class BookmarkModel; 11 class BookmarkModel;
12 12
13 namespace test { 13 namespace test {
14 14
15 class TestBookmarkClient : public bookmarks::BookmarkClient { 15 class TestBookmarkClient : public bookmarks::BookmarkClient {
16 public: 16 public:
17 TestBookmarkClient(); 17 TestBookmarkClient();
18 virtual ~TestBookmarkClient(); 18 virtual ~TestBookmarkClient();
19 19
20 // Create a BookmarkModel using this object as its client. The returned 20 // Create a BookmarkModel using this object as its client. The returned
21 // BookmarkModel* is owned by the caller. 21 // BookmarkModel* is owned by the caller.
22 scoped_ptr<BookmarkModel> CreateModel(bool index_urls); 22 scoped_ptr<BookmarkModel> CreateModel();
23 23
24 // Sets the list of extra nodes to be returned by the next call to 24 // Sets the list of extra nodes to be returned by the next call to
25 // CreateModel() or GetLoadExtraNodesCallback(). 25 // CreateModel() or GetLoadExtraNodesCallback().
26 void SetExtraNodesToLoad(bookmarks::BookmarkPermanentNodeList extra_nodes); 26 void SetExtraNodesToLoad(bookmarks::BookmarkPermanentNodeList extra_nodes);
27 27
28 // Returns the current extra_nodes, set via SetExtraNodesToLoad(). 28 // Returns the current extra_nodes, set via SetExtraNodesToLoad().
29 const std::vector<BookmarkPermanentNode*>& extra_nodes() { 29 const std::vector<BookmarkPermanentNode*>& extra_nodes() {
30 return extra_nodes_; 30 return extra_nodes_;
31 } 31 }
32 32
(...skipping 21 matching lines...) Expand all
54 54
55 bookmarks::BookmarkPermanentNodeList extra_nodes_to_load_; 55 bookmarks::BookmarkPermanentNodeList extra_nodes_to_load_;
56 std::vector<BookmarkPermanentNode*> extra_nodes_; 56 std::vector<BookmarkPermanentNode*> extra_nodes_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient); 58 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient);
59 }; 59 };
60 60
61 } // namespace test 61 } // namespace test
62 62
63 #endif // COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_ 63 #endif // COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_utils_unittest.cc ('k') | components/bookmarks/test/test_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698