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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 1409163006: Migrating tests to use EmbeddedTestServer (/chrome/browser misc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_browsertest.cc ('k') | chrome/browser/tab_contents/view_source_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698