OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/sync/test/integration/sync_test.h" | 5 #include "chrome/browser/sync/test/integration/sync_test.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #include "content/public/browser/navigation_entry.h" | 70 #include "content/public/browser/navigation_entry.h" |
71 #include "content/public/browser/notification_service.h" | 71 #include "content/public/browser/notification_service.h" |
72 #include "content/public/browser/web_contents.h" | 72 #include "content/public/browser/web_contents.h" |
73 #include "content/public/test/test_browser_thread.h" | 73 #include "content/public/test/test_browser_thread.h" |
74 #include "google_apis/gaia/gaia_urls.h" | 74 #include "google_apis/gaia/gaia_urls.h" |
75 #include "net/base/escape.h" | 75 #include "net/base/escape.h" |
76 #include "net/base/load_flags.h" | 76 #include "net/base/load_flags.h" |
77 #include "net/base/network_change_notifier.h" | 77 #include "net/base/network_change_notifier.h" |
78 #include "net/base/port_util.h" | 78 #include "net/base/port_util.h" |
79 #include "net/cookies/cookie_monster.h" | 79 #include "net/cookies/cookie_monster.h" |
80 #include "net/test/spawned_test_server/spawned_test_server.h" | |
81 #include "net/url_request/test_url_fetcher_factory.h" | 80 #include "net/url_request/test_url_fetcher_factory.h" |
82 #include "net/url_request/url_fetcher.h" | 81 #include "net/url_request/url_fetcher.h" |
83 #include "net/url_request/url_fetcher_delegate.h" | 82 #include "net/url_request/url_fetcher_delegate.h" |
84 #include "net/url_request/url_request_context.h" | 83 #include "net/url_request/url_request_context.h" |
85 #include "net/url_request/url_request_context_getter.h" | 84 #include "net/url_request/url_request_context_getter.h" |
86 #include "sync/engine/sync_scheduler_impl.h" | 85 #include "sync/engine/sync_scheduler_impl.h" |
87 #include "sync/protocol/sync.pb.h" | 86 #include "sync/protocol/sync.pb.h" |
88 #include "sync/test/fake_server/fake_server.h" | 87 #include "sync/test/fake_server/fake_server.h" |
89 #include "sync/test/fake_server/fake_server_network_resources.h" | 88 #include "sync/test/fake_server/fake_server_network_resources.h" |
90 #include "url/gurl.h" | 89 #include "url/gurl.h" |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 | 1102 |
1104 void SyncTest::TriggerSyncForModelTypes(int index, | 1103 void SyncTest::TriggerSyncForModelTypes(int index, |
1105 syncer::ModelTypeSet model_types) { | 1104 syncer::ModelTypeSet model_types) { |
1106 GetSyncService(index)->TriggerRefresh(model_types); | 1105 GetSyncService(index)->TriggerRefresh(model_types); |
1107 } | 1106 } |
1108 | 1107 |
1109 void SyncTest::SetPreexistingPreferencesFileContents( | 1108 void SyncTest::SetPreexistingPreferencesFileContents( |
1110 const std::string& contents) { | 1109 const std::string& contents) { |
1111 preexisting_preferences_file_contents_ = contents; | 1110 preexisting_preferences_file_contents_ = contents; |
1112 } | 1111 } |
OLD | NEW |