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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "content/public/browser/navigation_entry.h" | 71 #include "content/public/browser/navigation_entry.h" |
72 #include "content/public/browser/notification_service.h" | 72 #include "content/public/browser/notification_service.h" |
73 #include "content/public/browser/web_contents.h" | 73 #include "content/public/browser/web_contents.h" |
74 #include "content/public/test/test_browser_thread.h" | 74 #include "content/public/test/test_browser_thread.h" |
75 #include "google_apis/gaia/gaia_urls.h" | 75 #include "google_apis/gaia/gaia_urls.h" |
76 #include "net/base/escape.h" | 76 #include "net/base/escape.h" |
77 #include "net/base/load_flags.h" | 77 #include "net/base/load_flags.h" |
78 #include "net/base/network_change_notifier.h" | 78 #include "net/base/network_change_notifier.h" |
79 #include "net/base/port_util.h" | 79 #include "net/base/port_util.h" |
80 #include "net/cookies/cookie_monster.h" | 80 #include "net/cookies/cookie_monster.h" |
81 #include "net/test/spawned_test_server/spawned_test_server.h" | |
82 #include "net/url_request/test_url_fetcher_factory.h" | 81 #include "net/url_request/test_url_fetcher_factory.h" |
83 #include "net/url_request/url_fetcher.h" | 82 #include "net/url_request/url_fetcher.h" |
84 #include "net/url_request/url_fetcher_delegate.h" | 83 #include "net/url_request/url_fetcher_delegate.h" |
85 #include "net/url_request/url_request_context.h" | 84 #include "net/url_request/url_request_context.h" |
86 #include "net/url_request/url_request_context_getter.h" | 85 #include "net/url_request/url_request_context_getter.h" |
87 #include "sync/engine/sync_scheduler_impl.h" | 86 #include "sync/engine/sync_scheduler_impl.h" |
88 #include "sync/protocol/sync.pb.h" | 87 #include "sync/protocol/sync.pb.h" |
89 #include "sync/test/fake_server/fake_server.h" | 88 #include "sync/test/fake_server/fake_server.h" |
90 #include "sync/test/fake_server/fake_server_network_resources.h" | 89 #include "sync/test/fake_server/fake_server_network_resources.h" |
91 #include "url/gurl.h" | 90 #include "url/gurl.h" |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 | 1108 |
1110 void SyncTest::TriggerSyncForModelTypes(int index, | 1109 void SyncTest::TriggerSyncForModelTypes(int index, |
1111 syncer::ModelTypeSet model_types) { | 1110 syncer::ModelTypeSet model_types) { |
1112 GetSyncService(index)->TriggerRefresh(model_types); | 1111 GetSyncService(index)->TriggerRefresh(model_types); |
1113 } | 1112 } |
1114 | 1113 |
1115 void SyncTest::SetPreexistingPreferencesFileContents( | 1114 void SyncTest::SetPreexistingPreferencesFileContents( |
1116 const std::string& contents) { | 1115 const std::string& contents) { |
1117 preexisting_preferences_file_contents_ = contents; | 1116 preexisting_preferences_file_contents_ = contents; |
1118 } | 1117 } |
OLD | NEW |