Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Side by Side Diff: chrome/test/live_sync/live_sync_test.h

Issue 3037019: Fixing broken Integration tests. (Closed)
Patch Set: Adding periods after comments. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/live_sync/profile_sync_service_test_harness.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/scoped_vector.h" 14 #include "base/scoped_vector.h"
15 #include "chrome/test/live_sync/profile_sync_service_test_harness.h" 15 #include "chrome/test/live_sync/profile_sync_service_test_harness.h"
16 #include "net/base/mock_host_resolver.h" 16 #include "net/base/mock_host_resolver.h"
17 #include "net/test/test_server.h" 17 #include "net/test/test_server.h"
18 18
19 #include <string> 19 #include <string>
20 #include <vector> 20 #include <vector>
21 21
22 class CommandLine; 22 class CommandLine;
23 class Profile; 23 class Profile;
24 24
25 namespace net { 25 namespace net {
26 class ScopedDefaultHostResolverProc; 26 class ScopedDefaultHostResolverProc;
27 } 27 }
28 28
29 // Live sync tests are allowed to run for up to 5 minutes. 29 // Live sync tests are allowed to run for up to 45 seconds.
30 const int kTestTimeoutInMS = 300000; 30 const int kTestTimeoutInMS = 45000;
31 31
32 // This is the base class for integration tests for all sync data types. Derived 32 // This is the base class for integration tests for all sync data types. Derived
33 // classes must be defined for each sync data type. Individual tests are defined 33 // classes must be defined for each sync data type. Individual tests are defined
34 // using the IN_PROC_BROWSER_TEST_F macro. 34 // using the IN_PROC_BROWSER_TEST_F macro.
35 class LiveSyncTest : public InProcessBrowserTest { 35 class LiveSyncTest : public InProcessBrowserTest {
36 public: 36 public:
37 // The different types of live sync tests that can be implemented. 37 // The different types of live sync tests that can be implemented.
38 enum TestType { 38 enum TestType {
39 // Tests where only one client profile is synced with the server. Typically 39 // Tests where only one client profile is synced with the server. Typically
40 // sanity level tests. 40 // sanity level tests.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Sync integration tests need to make live DNS requests for access to 184 // Sync integration tests need to make live DNS requests for access to
185 // GAIA and sync server URLs under google.com. We use a scoped version 185 // GAIA and sync server URLs under google.com. We use a scoped version
186 // to override the default resolver while the test is active. 186 // to override the default resolver while the test is active.
187 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; 187 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); 189 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest);
190 }; 190 };
191 191
192 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 192 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/live_sync/profile_sync_service_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698