OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "sync/test/local_sync_test_server.h" | 5 #include "sync/test/local_sync_test_server.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "net/test/python_utils.h" | 11 #include "net/test/python_utils.h" |
12 #include "net/test/spawned_test_server/spawned_test_server.h" | 12 #include "net/test/spawned_test_server/spawned_test_server.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 LocalSyncTestServer::LocalSyncTestServer() | 16 LocalSyncTestServer::LocalSyncTestServer() |
17 : LocalTestServer( | 17 : LocalTestServer( |
18 net::SpawnedTestServer::TYPE_HTTP, // Sync uses the HTTP scheme. | 18 net::SpawnedTestServer::TYPE_HTTP, // Sync uses the HTTP scheme. |
19 net::SpawnedTestServer::kLocalhost, | 19 net::SpawnedTestServer::kLocalhost, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 if (!GetPyProtoPath(&pyproto_dir)) { | 86 if (!GetPyProtoPath(&pyproto_dir)) { |
87 LOG(WARNING) << "Cannot find pyproto dir for generated code. " | 87 LOG(WARNING) << "Cannot find pyproto dir for generated code. " |
88 << "Testserver features that rely on it will not work"; | 88 << "Testserver features that rely on it will not work"; |
89 return true; | 89 return true; |
90 } | 90 } |
91 AppendToPythonPath(pyproto_dir.AppendASCII("sync").AppendASCII("protocol")); | 91 AppendToPythonPath(pyproto_dir.AppendASCII("sync").AppendASCII("protocol")); |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 } // namespace syncer | 95 } // namespace syncer |
OLD | NEW |