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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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
29 using syncer::GetModelType; 28 using syncer::GetModelType;
30 using syncer::GetModelTypeFromSpecifics; 29 using syncer::GetModelTypeFromSpecifics;
31 using syncer::ModelType; 30 using syncer::ModelType;
32 using syncer::ModelTypeSet; 31 using syncer::ModelTypeSet;
33 32
34 namespace fake_server { 33 namespace fake_server {
35 34
36 class FakeServerEntity; 35 class FakeServerEntity;
37 36
38 namespace { 37 namespace {
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 DCHECK(thread_checker_.CalledOnValidThread()); 719 DCHECK(thread_checker_.CalledOnValidThread());
721 return weak_ptr_factory_.GetWeakPtr(); 720 return weak_ptr_factory_.GetWeakPtr();
722 } 721 }
723 722
724 std::string FakeServer::GetStoreBirthday() const { 723 std::string FakeServer::GetStoreBirthday() const {
725 DCHECK(thread_checker_.CalledOnValidThread()); 724 DCHECK(thread_checker_.CalledOnValidThread());
726 return base::Int64ToString(store_birthday_); 725 return base::Int64ToString(store_birthday_);
727 } 726 }
728 727
729 } // namespace fake_server 728 } // 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