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 "base/prefs/pref_service.h" | 5 #include "base/prefs/pref_service.h" |
6 #include "base/prefs/scoped_user_pref_update.h" | 6 #include "base/prefs/scoped_user_pref_update.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 set_signin_names_for_testing(new SigninNamesOnIOThread()); | 105 set_signin_names_for_testing(new SigninNamesOnIOThread()); |
106 SetCookieSettingsForTesting(cookie_settings); | 106 SetCookieSettingsForTesting(cookie_settings); |
107 } | 107 } |
108 | 108 |
109 ~TestProfileIOData() override { | 109 ~TestProfileIOData() override { |
110 signin_names()->ReleaseResourcesOnUIThread(); | 110 signin_names()->ReleaseResourcesOnUIThread(); |
111 } | 111 } |
112 | 112 |
113 // ProfileIOData overrides: | 113 // ProfileIOData overrides: |
114 void InitializeInternal(ProfileParams* profile_params, | 114 void InitializeInternal( |
115 content::ProtocolHandlerMap* protocol_handlers, | 115 scoped_ptr<ChromeNetworkDelegate> chrome_network_delegate, |
116 content::URLRequestInterceptorScopedVector | 116 ProfileParams* profile_params, |
117 request_interceptors) const override { | 117 content::ProtocolHandlerMap* protocol_handlers, |
| 118 content::URLRequestInterceptorScopedVector |
| 119 request_interceptors) const override { |
118 NOTREACHED(); | 120 NOTREACHED(); |
119 } | 121 } |
120 void InitializeExtensionsRequestContext( | 122 void InitializeExtensionsRequestContext( |
121 ProfileParams* profile_params) const override { | 123 ProfileParams* profile_params) const override { |
122 NOTREACHED(); | 124 NOTREACHED(); |
123 } | 125 } |
124 net::URLRequestContext* InitializeAppRequestContext( | 126 net::URLRequestContext* InitializeAppRequestContext( |
125 net::URLRequestContext* main_context, | 127 net::URLRequestContext* main_context, |
126 const StoragePartitionDescriptor& details, | 128 const StoragePartitionDescriptor& details, |
127 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 129 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 args.email = "foo@gmail.com"; | 977 args.email = "foo@gmail.com"; |
976 args.profile = profile(); | 978 args.profile = profile(); |
977 MockStarterWrapper* wrapper = new MockStarterWrapper( | 979 MockStarterWrapper* wrapper = new MockStarterWrapper( |
978 args, OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); | 980 args, OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); |
979 SetCookie("LSID=1234; domain=google.com; secure; httponly"); | 981 SetCookie("LSID=1234; domain=google.com; secure; httponly"); |
980 | 982 |
981 EXPECT_CALL(*wrapper, DisplayErrorBubble(_)); | 983 EXPECT_CALL(*wrapper, DisplayErrorBubble(_)); |
982 wrapper->Start(); | 984 wrapper->Start(); |
983 base::RunLoop().RunUntilIdle(); | 985 base::RunLoop().RunUntilIdle(); |
984 } | 986 } |
OLD | NEW |