| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/test/in_process_browser_test.h" | 9 #include "chrome/test/in_process_browser_test.h" |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 virtual ~LiveSyncTest() {} | 61 virtual ~LiveSyncTest() {} |
| 62 | 62 |
| 63 // Validates command line parameters and creates a local python test server if | 63 // Validates command line parameters and creates a local python test server if |
| 64 // specified. | 64 // specified. |
| 65 virtual void SetUp(); | 65 virtual void SetUp(); |
| 66 | 66 |
| 67 // Brings down local python test server if one was created. | 67 // Brings down local python test server if one was created. |
| 68 virtual void TearDown(); | 68 virtual void TearDown(); |
| 69 | 69 |
| 70 // Appends command line flag to enable sync. | 70 // Sets up command line flags required for sync tests. |
| 71 virtual void SetUpCommandLine(CommandLine* command_line) {} | 71 virtual void SetUpCommandLine(CommandLine* cl); |
| 72 | 72 |
| 73 // Used to get the number of sync clients used by a test. | 73 // Used to get the number of sync clients used by a test. |
| 74 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } | 74 int num_clients() WARN_UNUSED_RESULT { return num_clients_; } |
| 75 | 75 |
| 76 // Returns a pointer to a particular sync profile. Callee owns the object | 76 // Returns a pointer to a particular sync profile. Callee owns the object |
| 77 // and manages its lifetime. | 77 // and manages its lifetime. |
| 78 Profile* GetProfile(int index) WARN_UNUSED_RESULT; | 78 Profile* GetProfile(int index) WARN_UNUSED_RESULT; |
| 79 | 79 |
| 80 // Returns a pointer to a particular sync client. Callee owns the object | 80 // Returns a pointer to a particular sync client. Callee owns the object |
| 81 // and manages its lifetime. | 81 // and manages its lifetime. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // Used to start and stop the local test server. | 213 // Used to start and stop the local test server. |
| 214 base::ProcessHandle test_server_handle_; | 214 base::ProcessHandle test_server_handle_; |
| 215 | 215 |
| 216 // Fake URLFetcher factory used to mock out GAIA signin. | 216 // Fake URLFetcher factory used to mock out GAIA signin. |
| 217 scoped_ptr<FakeURLFetcherFactory> factory_; | 217 scoped_ptr<FakeURLFetcherFactory> factory_; |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 219 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 222 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |