| 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_http_post_provider.h" | 5 #include "components/sync/test/fake_server/fake_server_http_post_provider.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | |
| 9 #include "base/bind.h" | 7 #include "base/bind.h" |
| 10 #include "base/location.h" | 8 #include "base/location.h" |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/memory/weak_ptr.h" | |
| 13 #include "base/sequenced_task_runner.h" | |
| 14 #include "base/synchronization/waitable_event.h" | |
| 15 #include "components/sync/test/fake_server/fake_server.h" | 9 #include "components/sync/test/fake_server/fake_server.h" |
| 16 | 10 |
| 17 using syncer::HttpPostProviderInterface; | 11 using syncer::HttpPostProviderInterface; |
| 18 | 12 |
| 19 namespace fake_server { | 13 namespace fake_server { |
| 20 | 14 |
| 21 FakeServerHttpPostProviderFactory::FakeServerHttpPostProviderFactory( | 15 FakeServerHttpPostProviderFactory::FakeServerHttpPostProviderFactory( |
| 22 const base::WeakPtr<FakeServer>& fake_server, | 16 const base::WeakPtr<FakeServer>& fake_server, |
| 23 scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner) | 17 scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner) |
| 24 : fake_server_(fake_server), | 18 : fake_server_(fake_server), |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 103 } |
| 110 | 104 |
| 111 const std::string FakeServerHttpPostProvider::GetResponseHeaderValue( | 105 const std::string FakeServerHttpPostProvider::GetResponseHeaderValue( |
| 112 const std::string& name) const { | 106 const std::string& name) const { |
| 113 return std::string(); | 107 return std::string(); |
| 114 } | 108 } |
| 115 | 109 |
| 116 void FakeServerHttpPostProvider::Abort() {} | 110 void FakeServerHttpPostProvider::Abort() {} |
| 117 | 111 |
| 118 } // namespace fake_server | 112 } // namespace fake_server |
| OLD | NEW |