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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
(...skipping 14 matching lines...) Expand all
25 #include "components/sync/protocol/sync.pb.h" 25 #include "components/sync/protocol/sync.pb.h"
26 #include "components/sync/test/fake_server/bookmark_entity.h" 26 #include "components/sync/test/fake_server/bookmark_entity.h"
27 #include "components/sync/test/fake_server/permanent_entity.h" 27 #include "components/sync/test/fake_server/permanent_entity.h"
28 #include "components/sync/test/fake_server/tombstone_entity.h" 28 #include "components/sync/test/fake_server/tombstone_entity.h"
29 #include "components/sync/test/fake_server/unique_client_entity.h" 29 #include "components/sync/test/fake_server/unique_client_entity.h"
30 #include "net/base/net_errors.h" 30 #include "net/base/net_errors.h"
31 #include "net/http/http_status_code.h" 31 #include "net/http/http_status_code.h"
32 32
33 using std::string; 33 using std::string;
34 using std::vector; 34 using std::vector;
35
36 using syncer::GetModelType; 35 using syncer::GetModelType;
37 using syncer::GetModelTypeFromSpecifics; 36 using syncer::GetModelTypeFromSpecifics;
38 using syncer::ModelType; 37 using syncer::ModelType;
39 using syncer::ModelTypeSet; 38 using syncer::ModelTypeSet;
40 39
41 namespace fake_server { 40 namespace fake_server {
42 41
43 class FakeServerEntity; 42 class FakeServerEntity;
44 43
45 namespace { 44 namespace {
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 DCHECK(thread_checker_.CalledOnValidThread()); 726 DCHECK(thread_checker_.CalledOnValidThread());
728 return weak_ptr_factory_.GetWeakPtr(); 727 return weak_ptr_factory_.GetWeakPtr();
729 } 728 }
730 729
731 std::string FakeServer::GetStoreBirthday() const { 730 std::string FakeServer::GetStoreBirthday() const {
732 DCHECK(thread_checker_.CalledOnValidThread()); 731 DCHECK(thread_checker_.CalledOnValidThread());
733 return base::Int64ToString(store_birthday_); 732 return base::Int64ToString(store_birthday_);
734 } 733 }
735 734
736 } // namespace fake_server 735 } // namespace fake_server
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698