| 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/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 void HistoryClientFakeBookmarks::Shutdown() { | 174 void HistoryClientFakeBookmarks::Shutdown() { |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool HistoryClientFakeBookmarks::CanAddURL(const GURL& url) { | 177 bool HistoryClientFakeBookmarks::CanAddURL(const GURL& url) { |
| 178 return url.is_valid(); | 178 return url.is_valid(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void HistoryClientFakeBookmarks::NotifyProfileError( | 181 void HistoryClientFakeBookmarks::NotifyProfileError( |
| 182 sql::InitStatus init_status) { | 182 sql::InitStatus init_status, |
| 183 } | 183 const std::string& diagnostics) {} |
| 184 | 184 |
| 185 std::unique_ptr<HistoryBackendClient> | 185 std::unique_ptr<HistoryBackendClient> |
| 186 HistoryClientFakeBookmarks::CreateBackendClient() { | 186 HistoryClientFakeBookmarks::CreateBackendClient() { |
| 187 return base::WrapUnique(new HistoryBackendClientFakeBookmarks(bookmarks_)); | 187 return base::WrapUnique(new HistoryBackendClientFakeBookmarks(bookmarks_)); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace history | 190 } // namespace history |
| OLD | NEW |