| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Post the message using the scm, and do some processing on the returned | 127 // Post the message using the scm, and do some processing on the returned |
| 128 // headers. Decode the server response. | 128 // headers. Decode the server response. |
| 129 static bool PostAndProcessHeaders(ServerConnectionManager* scm, | 129 static bool PostAndProcessHeaders(ServerConnectionManager* scm, |
| 130 SyncCycle* cycle, | 130 SyncCycle* cycle, |
| 131 const sync_pb::ClientToServerMessage& msg, | 131 const sync_pb::ClientToServerMessage& msg, |
| 132 sync_pb::ClientToServerResponse* response); | 132 sync_pb::ClientToServerResponse* response); |
| 133 | 133 |
| 134 static base::TimeDelta GetThrottleDelay( | 134 static base::TimeDelta GetThrottleDelay( |
| 135 const sync_pb::ClientToServerResponse& response); | 135 const sync_pb::ClientToServerResponse& response); |
| 136 | 136 |
| 137 friend class LoopbackServerTest; |
| 137 friend class SyncerProtoUtilTest; | 138 friend class SyncerProtoUtilTest; |
| 138 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); | 139 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); |
| 139 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); | 140 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); |
| 140 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); | 141 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); |
| 141 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); | 142 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); |
| 142 | 143 |
| 143 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); | 144 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace syncer | 147 } // namespace syncer |
| 147 | 148 |
| 148 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ | 149 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ |
| OLD | NEW |