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/sync/test/fake_server/fake_server.h" | 5 #include "components/sync/test/fake_server/fake_server.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/guid.h" | 12 #include "base/guid.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "components/sync/test/fake_server/bookmark_entity.h" | 19 #include "components/sync/test/fake_server/bookmark_entity.h" |
20 #include "components/sync/test/fake_server/permanent_entity.h" | 20 #include "components/sync/test/fake_server/permanent_entity.h" |
21 #include "components/sync/test/fake_server/tombstone_entity.h" | 21 #include "components/sync/test/fake_server/tombstone_entity.h" |
22 #include "components/sync/test/fake_server/unique_client_entity.h" | 22 #include "components/sync/test/fake_server/unique_client_entity.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "net/http/http_status_code.h" | 24 #include "net/http/http_status_code.h" |
25 | 25 |
26 using std::string; | 26 using std::string; |
27 using std::vector; | 27 using std::vector; |
| 28 |
28 using syncer::GetModelType; | 29 using syncer::GetModelType; |
29 using syncer::GetModelTypeFromSpecifics; | 30 using syncer::GetModelTypeFromSpecifics; |
30 using syncer::ModelType; | 31 using syncer::ModelType; |
31 using syncer::ModelTypeSet; | 32 using syncer::ModelTypeSet; |
32 | 33 |
33 namespace fake_server { | 34 namespace fake_server { |
34 | 35 |
35 class FakeServerEntity; | 36 class FakeServerEntity; |
36 | 37 |
37 namespace { | 38 namespace { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 DCHECK(thread_checker_.CalledOnValidThread()); | 720 DCHECK(thread_checker_.CalledOnValidThread()); |
720 return weak_ptr_factory_.GetWeakPtr(); | 721 return weak_ptr_factory_.GetWeakPtr(); |
721 } | 722 } |
722 | 723 |
723 std::string FakeServer::GetStoreBirthday() const { | 724 std::string FakeServer::GetStoreBirthday() const { |
724 DCHECK(thread_checker_.CalledOnValidThread()); | 725 DCHECK(thread_checker_.CalledOnValidThread()); |
725 return base::Int64ToString(store_birthday_); | 726 return base::Int64ToString(store_birthday_); |
726 } | 727 } |
727 | 728 |
728 } // namespace fake_server | 729 } // namespace fake_server |
OLD | NEW |