| OLD | NEW |
| 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 #include "components/history/core/test/history_client_fake_bookmarks.h" | 5 #include "components/history/core/test/history_client_fake_bookmarks.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 9 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 11 #include "build/build_config.h" |
| 10 #include "components/history/core/browser/history_backend_client.h" | 12 #include "components/history/core/browser/history_backend_client.h" |
| 11 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 12 | 14 |
| 13 namespace history { | 15 namespace history { |
| 14 | 16 |
| 15 class FakeBookmarkDatabase : public base::RefCounted<FakeBookmarkDatabase> { | 17 class FakeBookmarkDatabase : public base::RefCounted<FakeBookmarkDatabase> { |
| 16 public: | 18 public: |
| 17 FakeBookmarkDatabase() {} | 19 FakeBookmarkDatabase() {} |
| 18 | 20 |
| 19 void ClearAllBookmarks(); | 21 void ClearAllBookmarks(); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void HistoryClientFakeBookmarks::NotifyProfileError( | 175 void HistoryClientFakeBookmarks::NotifyProfileError( |
| 174 sql::InitStatus init_status) { | 176 sql::InitStatus init_status) { |
| 175 } | 177 } |
| 176 | 178 |
| 177 scoped_ptr<HistoryBackendClient> | 179 scoped_ptr<HistoryBackendClient> |
| 178 HistoryClientFakeBookmarks::CreateBackendClient() { | 180 HistoryClientFakeBookmarks::CreateBackendClient() { |
| 179 return make_scoped_ptr(new HistoryBackendClientFakeBookmarks(bookmarks_)); | 181 return make_scoped_ptr(new HistoryBackendClientFakeBookmarks(bookmarks_)); |
| 180 } | 182 } |
| 181 | 183 |
| 182 } // namespace history | 184 } // namespace history |
| OLD | NEW |