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

Side by Side Diff: components/sync/test/fake_server/fake_server.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 #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
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
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/bookmark_entity_builder.cc ('k') | components/sync/test/fake_server/fake_server_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698