OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/fake_web_history_service.h" | 5 #include "components/history/core/test/fake_web_history_service.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "components/sync/protocol/history_status.pb.h" |
14 #include "net/base/url_util.h" | 15 #include "net/base/url_util.h" |
15 #include "net/url_request/url_request_context_getter.h" | 16 #include "net/url_request/url_request_context_getter.h" |
16 #include "sync/protocol/history_status.pb.h" | |
17 | 17 |
18 namespace history { | 18 namespace history { |
19 | 19 |
20 // FakeRequest ----------------------------------------------------------------- | 20 // FakeRequest ----------------------------------------------------------------- |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // TODO(msramek): Find a way to keep these URLs in sync with what is used | 24 // TODO(msramek): Find a way to keep these URLs in sync with what is used |
25 // in WebHistoryService. | 25 // in WebHistoryService. |
26 | 26 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 bool FakeWebHistoryService::AreOtherFormsOfBrowsingHistoryPresent() { | 237 bool FakeWebHistoryService::AreOtherFormsOfBrowsingHistoryPresent() { |
238 return other_forms_of_browsing_history_present_; | 238 return other_forms_of_browsing_history_present_; |
239 } | 239 } |
240 | 240 |
241 void FakeWebHistoryService::SetOtherFormsOfBrowsingHistoryPresent( | 241 void FakeWebHistoryService::SetOtherFormsOfBrowsingHistoryPresent( |
242 bool present) { | 242 bool present) { |
243 other_forms_of_browsing_history_present_ = present; | 243 other_forms_of_browsing_history_present_ = present; |
244 } | 244 } |
245 | 245 |
246 } // namespace history | 246 } // namespace history |
OLD | NEW |