| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } | 106 } |
| 107 | 107 |
| 108 virtual ~TestProfileIOData() { | 108 virtual ~TestProfileIOData() { |
| 109 signin_names()->ReleaseResourcesOnUIThread(); | 109 signin_names()->ReleaseResourcesOnUIThread(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 // ProfileIOData overrides: | 112 // ProfileIOData overrides: |
| 113 virtual void InitializeInternal( | 113 virtual void InitializeInternal( |
| 114 ProfileParams* profile_params, | 114 ProfileParams* profile_params, |
| 115 content::ProtocolHandlerMap* protocol_handlers, | 115 content::ProtocolHandlerMap* protocol_handlers, |
| 116 content::ProtocolHandlerScopedVector protocol_interceptors) | 116 content::URLRequestInterceptorScopedVector request_interceptors) |
| 117 const OVERRIDE { | 117 const OVERRIDE { |
| 118 NOTREACHED(); | 118 NOTREACHED(); |
| 119 } | 119 } |
| 120 virtual void InitializeExtensionsRequestContext( | 120 virtual void InitializeExtensionsRequestContext( |
| 121 ProfileParams* profile_params) const OVERRIDE { | 121 ProfileParams* profile_params) const OVERRIDE { |
| 122 NOTREACHED(); | 122 NOTREACHED(); |
| 123 } | 123 } |
| 124 virtual ChromeURLRequestContext* InitializeAppRequestContext( | 124 virtual ChromeURLRequestContext* InitializeAppRequestContext( |
| 125 ChromeURLRequestContext* main_context, | 125 ChromeURLRequestContext* main_context, |
| 126 const StoragePartitionDescriptor& details, | 126 const StoragePartitionDescriptor& details, |
| 127 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 127 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 128 protocol_handler_interceptor, | 128 protocol_handler_interceptor, |
| 129 content::ProtocolHandlerMap* protocol_handlers, | 129 content::ProtocolHandlerMap* protocol_handlers, |
| 130 content::ProtocolHandlerScopedVector protocol_interceptors) | 130 content::URLRequestInterceptorScopedVector request_interceptors) |
| 131 const OVERRIDE { | 131 const OVERRIDE { |
| 132 NOTREACHED(); | 132 NOTREACHED(); |
| 133 return NULL; | 133 return NULL; |
| 134 } | 134 } |
| 135 virtual ChromeURLRequestContext* InitializeMediaRequestContext( | 135 virtual ChromeURLRequestContext* InitializeMediaRequestContext( |
| 136 ChromeURLRequestContext* original_context, | 136 ChromeURLRequestContext* original_context, |
| 137 const StoragePartitionDescriptor& details) const OVERRIDE { | 137 const StoragePartitionDescriptor& details) const OVERRIDE { |
| 138 NOTREACHED(); | 138 NOTREACHED(); |
| 139 return NULL; | 139 return NULL; |
| 140 } | 140 } |
| 141 virtual ChromeURLRequestContext* | 141 virtual ChromeURLRequestContext* |
| 142 AcquireMediaRequestContext() const OVERRIDE { | 142 AcquireMediaRequestContext() const OVERRIDE { |
| 143 NOTREACHED(); | 143 NOTREACHED(); |
| 144 return NULL; | 144 return NULL; |
| 145 } | 145 } |
| 146 virtual ChromeURLRequestContext* AcquireIsolatedAppRequestContext( | 146 virtual ChromeURLRequestContext* AcquireIsolatedAppRequestContext( |
| 147 ChromeURLRequestContext* main_context, | 147 ChromeURLRequestContext* main_context, |
| 148 const StoragePartitionDescriptor& partition_descriptor, | 148 const StoragePartitionDescriptor& partition_descriptor, |
| 149 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> | 149 scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
| 150 protocol_handler_interceptor, | 150 protocol_handler_interceptor, |
| 151 content::ProtocolHandlerMap* protocol_handlers, | 151 content::ProtocolHandlerMap* protocol_handlers, |
| 152 content::ProtocolHandlerScopedVector protocol_interceptors) | 152 content::URLRequestInterceptorScopedVector request_interceptors) |
| 153 const OVERRIDE { | 153 const OVERRIDE { |
| 154 NOTREACHED(); | 154 NOTREACHED(); |
| 155 return NULL; | 155 return NULL; |
| 156 } | 156 } |
| 157 virtual ChromeURLRequestContext* | 157 virtual ChromeURLRequestContext* |
| 158 AcquireIsolatedMediaRequestContext( | 158 AcquireIsolatedMediaRequestContext( |
| 159 ChromeURLRequestContext* app_context, | 159 ChromeURLRequestContext* app_context, |
| 160 const StoragePartitionDescriptor& partition_descriptor) | 160 const StoragePartitionDescriptor& partition_descriptor) |
| 161 const OVERRIDE { | 161 const OVERRIDE { |
| 162 NOTREACHED(); | 162 NOTREACHED(); |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 args.email = "foo@gmail.com"; | 1012 args.email = "foo@gmail.com"; |
| 1013 args.profile = profile(); | 1013 args.profile = profile(); |
| 1014 MockStarterWrapper* wrapper = new MockStarterWrapper( | 1014 MockStarterWrapper* wrapper = new MockStarterWrapper( |
| 1015 args, OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); | 1015 args, OneClickSigninSyncStarter::SYNC_WITH_DEFAULT_SETTINGS); |
| 1016 SetCookie("LSID=1234; domain=google.com; secure; httponly"); | 1016 SetCookie("LSID=1234; domain=google.com; secure; httponly"); |
| 1017 | 1017 |
| 1018 EXPECT_CALL(*wrapper, DisplayErrorBubble(_)); | 1018 EXPECT_CALL(*wrapper, DisplayErrorBubble(_)); |
| 1019 wrapper->Start(); | 1019 wrapper->Start(); |
| 1020 base::RunLoop().RunUntilIdle(); | 1020 base::RunLoop().RunUntilIdle(); |
| 1021 } | 1021 } |
| OLD | NEW |