OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/test/live_sync/live_sync_test.h" | 5 #include "chrome/test/live_sync/live_sync_test.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/path_service.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
12 #include "chrome/browser/profile_manager.h" | 13 #include "chrome/browser/profile_manager.h" |
13 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
15 | 16 |
16 namespace switches { | 17 namespace switches { |
17 const std::string kPasswordFileForTest = "password-file-for-test"; | 18 const std::string kPasswordFileForTest = "password-file-for-test"; |
18 const std::string kSyncUserForTest = "sync-user-for-test"; | 19 const std::string kSyncUserForTest = "sync-user-for-test"; |
19 const std::string kSyncPasswordForTest = "sync-password-for-test"; | 20 const std::string kSyncPasswordForTest = "sync-password-for-test"; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 CommandLine* cl = CommandLine::ForCurrentProcess(); | 185 CommandLine* cl = CommandLine::ForCurrentProcess(); |
185 cl->AppendSwitchWithValue(switches::kSyncServiceURL, | 186 cl->AppendSwitchWithValue(switches::kSyncServiceURL, |
186 StringPrintf("http://%s:%d/chromiumsync", server_.kHostName, | 187 StringPrintf("http://%s:%d/chromiumsync", server_.kHostName, |
187 server_.kOKHTTPSPort)); | 188 server_.kOKHTTPSPort)); |
188 } | 189 } |
189 | 190 |
190 void LiveSyncTest::TearDownLocalTestServer() { | 191 void LiveSyncTest::TearDownLocalTestServer() { |
191 bool success = server_.Stop(); | 192 bool success = server_.Stop(); |
192 ASSERT_TRUE(success); | 193 ASSERT_TRUE(success); |
193 } | 194 } |
OLD | NEW |