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

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

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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_CORE_TEST_TEST_BOOKMARK_CLIENT_H_ 5 #ifndef COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_
6 #define COMPONENTS_BOOKMARKS_CORE_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/core/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 BookmarkClient { 15 class TestBookmarkClient : public 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(bool index_urls);
23 23
24 private: 24 private:
25 // BookmarkClient: 25 // BookmarkClient:
26 virtual bool IsPermanentNodeVisible(int node_type) OVERRIDE; 26 virtual bool IsPermanentNodeVisible(int node_type) OVERRIDE;
27 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE; 27 virtual void RecordAction(const base::UserMetricsAction& action) OVERRIDE;
28 28
29 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient); 29 DISALLOW_COPY_AND_ASSIGN(TestBookmarkClient);
30 }; 30 };
31 31
32 } // namespace test 32 } // namespace test
33 33
34 #endif // COMPONENTS_BOOKMARKS_CORE_TEST_TEST_BOOKMARK_CLIENT_H_ 34 #endif // COMPONENTS_BOOKMARKS_TEST_TEST_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « components/bookmarks/test/bookmark_test_helpers.cc ('k') | components/bookmarks/test/test_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698