Home
last modified time | relevance | path

Searched refs:service_ (Results 1 – 25 of 91) sorted by relevance

1234

/external/chromium/chrome/browser/net/gaia/
Dtoken_service_unittest.cc68 Source<TokenService>(&service_)); in SetUp()
70 Source<TokenService>(&service_)); in SetUp()
72 service_.Initialize("test", profile_.get()); in SetUp()
105 service_.UpdateCredentials(credentials_); in SetUp()
110 EXPECT_TRUE(service_.HasLsid()); in TEST_F()
111 EXPECT_EQ(service_.GetLsid(), "lsid"); in TEST_F()
112 EXPECT_FALSE(service_.HasTokenForService("nonexistent service")); in TEST_F()
116 EXPECT_FALSE(service_.HasTokenForService("nonexistent service")); in TEST_F()
117 EXPECT_EQ(service_.GetTokenForService("nonexistent service"), std::string()); in TEST_F()
123 service_.OnIssueAuthTokenSuccess(GaiaConstants::kSyncService, "token"); in TEST_F()
[all …]
Dtoken_service.h71 : service_(service), token_(token) {} in TokenAvailableDetails()
72 const std::string& service() const { return service_; } in service()
75 std::string service_;
85 : service_(service), error_(error) {} in TokenRequestFailedDetails()
86 const std::string& service() const { return service_; } in service()
89 std::string service_;
/external/chromium/chrome/browser/sync/
Dprofile_sync_service_startup_unittest.cc54 service_.reset(); in ~ProfileSyncServiceStartupTest()
60 service_.reset(new TestProfileSyncService(&factory_, &profile_, in SetUp()
62 service_->AddObserver(&observer_); in SetUp()
63 service_->set_synchronous_sync_configuration(); in SetUp()
67 service_->RemoveObserver(&observer_); in TearDown()
89 scoped_ptr<TestProfileSyncService> service_; member in ProfileSyncServiceStartupTest
103 service_->Initialize(); in TEST_F()
124 service_->OnUserChoseDatatypes(false, set); in TEST_F()
139 service_->Initialize(); in TEST_F()
152 service_->Initialize(); in TEST_F()
[all …]
Dprofile_sync_service_unittest.cc46 service_.reset(); in ~ProfileSyncServiceTest()
76 if (!service_.get()) { in StartSyncServiceAndSetInitialSyncEnded()
78 service_.reset(new TestProfileSyncService(&factory_, in StartSyncServiceAndSetInitialSyncEnded()
82 service_->dont_set_initial_sync_ended_on_init(); in StartSyncServiceAndSetInitialSyncEnded()
84 service_->set_synchronous_sync_configuration(); in StartSyncServiceAndSetInitialSyncEnded()
96 service_->Initialize(); in StartSyncServiceAndSetInitialSyncEnded()
110 scoped_ptr<TestProfileSyncService> service_; member in browser_sync::__anon7b3068a60111::ProfileSyncServiceTest
116 service_.reset(new TestProfileSyncService(&factory_, profile_.get(), in TEST_F()
119 service_->sync_service_url().spec() == in TEST_F()
121 service_->sync_service_url().spec() == in TEST_F()
[all …]
Dsync_setup_wizard_unittest.cc180 service_ = static_cast<ProfileSyncServiceForWizardTest*>( in SetUp()
182 wizard_.reset(new SyncSetupWizard(service_)); in SetUp()
187 service_ = NULL; in TearDown()
193 ProfileSyncServiceForWizardTest* service_; member in SyncSetupWizardTest
210 SyncSetupFlow::GetArgsForGaiaLogin(service_, &dialog_args); in TEST_F()
236 EXPECT_EQ(kTestUser, service_->username_); in TEST_F()
237 EXPECT_EQ(kTestPassword, service_->password_); in TEST_F()
238 EXPECT_EQ(kTestCaptcha, service_->captcha_); in TEST_F()
239 EXPECT_FALSE(service_->user_cancelled_dialog_); in TEST_F()
240 service_->ResetTestStats(); in TEST_F()
[all …]
Dsync_setup_flow.cc191 service_->SetSyncSetupCompleted(); in OnDialogClosed()
223 service_->OnUserCancelledDialog(); in OnDialogClosed()
231 service_->OnUserSubmittedAuth(username, password, captcha, access_code); in OnUserSubmittedAuth()
239 DCHECK(service_->IsUsingSecondaryPassphrase() || in OnUserConfigured()
244 !service_->IsUsingSecondaryPassphrase()) { in OnUserConfigured()
245 service_->SetPassphrase(configuration.secondary_passphrase, true, true); in OnUserConfigured()
249 service_->OnUserChoseDatatypes(configuration.sync_everything, in OnUserConfigured()
255 service_->SetPassphrase(passphrase, true, false); in OnPassphraseEntry()
263 DisablePasswordSync(service_); in OnPassphraseCancel()
291 service_(service), in SyncSetupFlow()
[all …]
Dprofile_sync_service_harness.cc96 service_(NULL), in ProfileSyncServiceHarness()
102 service_ = profile_->GetProfileSyncService(); in ProfileSyncServiceHarness()
103 service_->AddObserver(this); in ProfileSyncServiceHarness()
140 service_ = profile_->GetProfileSyncService(""); in SetupSync()
141 if (service_ == NULL) { in SetupSync()
147 if (!service_->HasObserver(this)) in SetupSync()
148 service_->AddObserver(this); in SetupSync()
151 service_->signin()->StartSignIn(username_, password_, "", ""); in SetupSync()
483 DCHECK(service_ != NULL) << "Sync service has not yet been set up."; in GetLastSessionSnapshot()
484 if (service_->sync_initialized()) { in GetLastSessionSnapshot()
[all …]
Dbackend_migrator.cc25 : state_(IDLE), service_(service), manager_(manager), in BackendMigrator()
30 service_->AddObserver(this); in BackendMigrator()
34 service_->RemoveObserver(this); in ~BackendMigrator()
65 service_->GetPreferredDataTypes(&full_set); in MigrateTypes()
87 const SyncSessionSnapshot* snap = service_->GetLastSessionSnapshot(); in OnStateChanged()
99 service_->GetPreferredDataTypes(&full_set); in OnStateChanged()
/external/chromium/chrome/browser/sessions/
Dtab_restore_service_browsertest.cc49 service_ = new TabRestoreService(profile(), time_factory_); in SetUp()
54 service_ = NULL; in TearDown()
77 service_ = NULL; in RecreateService()
78 service_ = new TabRestoreService(profile(), time_factory_); in RecreateService()
79 service_->LoadTabsFromLastSession(); in RecreateService()
117 scoped_refptr<TabRestoreService> service_; member in TabRestoreServiceTest
126 service_->CreateHistoricalTab(&controller(), -1); in TEST_F()
129 ASSERT_EQ(1U, service_->entries().size()); in TEST_F()
132 TabRestoreService::Entry* entry = service_->entries().front(); in TEST_F()
148 service_->CreateHistoricalTab(&controller(), -1); in TEST_F()
[all …]
Dsession_service_test_helper.h64 void set_service(SessionService* service) { service_ = service; } in set_service()
65 SessionService* ReleaseService() { return service_.release(); } in ReleaseService()
66 SessionService* service() { return service_.get(); } in service()
71 scoped_refptr<SessionService> service_;
/external/chromium/chrome/browser/extensions/
Dextension_service_unittest.cc337 ExtensionTestingProfile() : service_(NULL) { in ExtensionTestingProfile()
341 service_ = service; in set_extensions_service()
343 virtual ExtensionService* GetExtensionService() { return service_; } in GetExtensionService()
370 ExtensionService* service_; member in ExtensionTestingProfile
396 service_ = NULL; in ~ExtensionServiceTestBase()
414 service_ = profile->CreateExtensionService( in InitializeExtensionService()
418 service_->set_extensions_enabled(true); in InitializeExtensionService()
419 service_->set_show_extensions_prompts(false); in InitializeExtensionService()
420 profile->set_extensions_service(service_.get()); in InitializeExtensionService()
427 service_->ClearProvidersForTesting(); in InitializeExtensionService()
[all …]
Dextensions_quota_service_unittest.cc100 service_.reset(new ExtensionsQuotaService()); in SetUp()
103 service_.reset(); in TearDown()
109 scoped_ptr<ExtensionsQuotaService> service_; member in ExtensionsQuotaServiceTest
185 EXPECT_TRUE(service_->Assess(extension_a_, f, &args, kStartTime)); in TEST_F()
192 EXPECT_FALSE(service_->Assess(extension_a_, f, &args, kStartTime)); in TEST_F()
199 EXPECT_TRUE(service_->Assess(extension_a_, f, &args, kStartTime)); in TEST_F()
200 EXPECT_TRUE(service_->Assess(extension_a_, f, &args, in TEST_F()
202 EXPECT_FALSE(service_->Assess(extension_a_, f, &args, in TEST_F()
208 EXPECT_TRUE(service_->Assess(extension_b_, f, &args2, kStartTime)); in TEST_F()
209 EXPECT_TRUE(service_->Assess(extension_b_, f, &args2, in TEST_F()
[all …]
Dextension_toolbar_model.cc16 : service_(service), in ExtensionToolbarModel()
19 DCHECK(service_); in ExtensionToolbarModel()
22 Source<Profile>(service_->profile())); in ExtensionToolbarModel()
24 Source<Profile>(service_->profile())); in ExtensionToolbarModel()
26 Source<Profile>(service_->profile())); in ExtensionToolbarModel()
94 if (!service_->is_ready()) in Observe()
111 if (service_->GetBrowserActionVisibility(extension)) in Observe()
117 if (service_->GetBrowserActionVisibility(extension)) in Observe()
173 DCHECK(service_->is_ready()); in InitializeExtensionList()
175 std::vector<std::string> pref_order = service_->extension_prefs()-> in InitializeExtensionList()
[all …]
Dextension_disabled_infobar_delegate.cc45 ExtensionService* service_; member in ExtensionDisabledDialogDelegate
53 : service_(service), extension_(extension) { in ExtensionDisabledDialogDelegate()
64 service_->GrantPermissionsAndEnableExtension(extension_); in InstallUIProceed()
103 ExtensionService* service_; member in ExtensionDisabledInfobarDelegate
113 service_(service), in ExtensionDisabledInfobarDelegate()
148 new ExtensionDisabledDialogDelegate(tab_contents_->profile(), service_, in Accept()
/external/chromium/chrome/browser/notifications/
Dnotification_exceptions_table_model_unittest.cc27 service_ = DesktopNotificationServiceFactory::GetForProfile(profile()); in SetUp()
37 model_.reset(new NotificationExceptionsTableModel(service_)); in ResetModel()
41 service_->GrantPermission(GURL("http://e-allowed2.com")); in FillData()
42 service_->GrantPermission(GURL("http://allowed.com")); in FillData()
44 service_->DenyPermission(GURL("http://denied2.com")); in FillData()
45 service_->DenyPermission(GURL("http://denied.com")); in FillData()
46 service_->DenyPermission(GURL("http://f-denied3.com")); in FillData()
54 DesktopNotificationService* service_; member in NotificationExceptionsTableModelTest
63 EXPECT_EQ(2u, service_->GetAllowedOrigins().size()); in TEST_F()
64 EXPECT_EQ(3u, service_->GetBlockedOrigins().size()); in TEST_F()
[all …]
Ddesktop_notification_service_unittest.cc106 service_ = DesktopNotificationServiceFactory::GetForProfile(profile()); in SetUp()
107 cache_ = service_->prefs_cache(); in SetUp()
117 DesktopNotificationService* service_; member in __anonc1e2d3360111::DesktopNotificationServiceTest
129 service_->SetDefaultContentSetting(CONTENT_SETTING_BLOCK); in TEST_F()
148 service_->GrantPermission(url); in TEST_F()
152 service_->DenyPermission(url); in TEST_F()
164 service_->GrantPermission(https_url); in TEST_F()
170 service_->DenyPermission(http_url); in TEST_F()
182 service_->GrantPermission(url); in TEST_F()
193 service_->DenyPermission(url); in TEST_F()
[all …]
Ddesktop_notifications_unittest.cc91 service_.reset(new DesktopNotificationService(profile(), ui_manager_.get())); in SetUp()
96 service_.reset(NULL); in TearDown()
118 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
129 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
144 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
168 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
175 service_->CancelDesktopNotification(process_id, in TEST_F()
196 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
223 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
230 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
[all …]
Dnotification_exceptions_table_model.cc28 : service_(service), in NotificationExceptionsTableModel()
50 service_->ResetAllowedOrigin(entry->origin); in RemoveRows()
53 service_->ResetBlockedOrigin(entry->origin); in RemoveRows()
64 service_->ResetAllOrigins(); in RemoveAll()
115 std::vector<GURL> allowed(service_->GetAllowedOrigins()); in LoadEntries()
116 std::vector<GURL> blocked(service_->GetBlockedOrigins()); in LoadEntries()
/external/chromium/chrome/browser/prefs/
Dpref_change_registrar.cc10 PrefChangeRegistrar::PrefChangeRegistrar() : service_(NULL) {} in PrefChangeRegistrar()
21 DCHECK(IsEmpty() || service_ == service); in Init()
22 service_ = service; in Init()
26 if (!service_) { in Add()
36 service_->AddPrefObserver(path, obs); in Add()
40 if (!service_) { in Remove()
51 service_->RemovePrefObserver(it->first.c_str(), it->second); in Remove()
56 if (service_) { in RemoveAll()
59 service_->RemovePrefObserver(it->first.c_str(), it->second); in RemoveAll()
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_blocking_page_unittest.cc82 service_ = new TestSafeBrowsingService(); in SafeBrowsingBlockingPageTest()
124 SafeBrowsingBlockingPage::ShowBlockingPage(service_, resource); in ShowInterstitial()
154 scoped_refptr<TestSafeBrowsingService> service_; member in SafeBrowsingBlockingPageTest
202 EXPECT_EQ(1u, service_->GetDetails()->size()); in TEST_F()
203 service_->GetDetails()->clear(); in TEST_F()
231 EXPECT_EQ(1u, service_->GetDetails()->size()); in TEST_F()
232 service_->GetDetails()->clear(); in TEST_F()
265 EXPECT_EQ(1u, service_->GetDetails()->size()); in TEST_F()
266 service_->GetDetails()->clear(); in TEST_F()
295 EXPECT_EQ(1u, service_->GetDetails()->size()); in TEST_F()
[all …]
/external/chromium/chrome/browser/chromeos/login/
Downership_service_unittest.cc55 service_.reset(new OwnershipService); // must happen AFTER set_factory(). in SetUp()
56 service_->Prewarm(); in SetUp()
61 service_.reset(NULL); in TearDown()
80 scoped_ptr<OwnershipService> service_; member in chromeos::OwnershipServiceTest
86 EXPECT_TRUE(service_->IsAlreadyOwned()); in TEST_F()
92 EXPECT_TRUE(service_->GetStatus(true) == OwnershipService::OWNERSHIP_TAKEN); in TEST_F()
100 EXPECT_FALSE(service_->IsAlreadyOwned()); in TEST_F()
108 EXPECT_TRUE(service_->GetStatus(true) == OwnershipService::OWNERSHIP_NONE); in TEST_F()
119 service_->StartLoadOwnerKeyAttempt(); in TEST_F()
127 service_->StartUpdateOwnerKey(std::vector<uint8>(), &delegate); in TEST_F()
[all …]
/external/chromium/chrome/browser/chromeos/notifications/
Ddesktop_notifications_unittest.cc86 service_.reset(new DesktopNotificationService(profile(), ui_manager_.get())); in SetUp()
91 service_.reset(NULL); in TearDown()
112 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
124 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
139 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
168 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
175 service_->CancelDesktopNotification(process_id, in TEST_F()
197 EXPECT_TRUE(service_->ShowDesktopNotification( in TEST_F()
219 service_->CancelDesktopNotification(process_id, route_id, id); in TEST_F()
230 service_->CancelDesktopNotification(process_id, route_id, id); in TEST_F()
[all …]
/external/chromium/chrome/browser/debugger/
Dextension_ports_remote_service.cc114 : delegate_(delegate), service_(NULL) { in ExtensionPortsRemoteService()
128 service_ = profiles[i]->GetExtensionMessageService(); in ExtensionPortsRemoteService()
132 if (!service_) in ExtensionPortsRemoteService()
165 if (!service_) { in HandleMessage()
204 DCHECK(service_); in OnConnectionLost()
208 service_->CloseChannel(*it); in OnConnectionLost()
321 DCHECK(service_); in ConnectCommand()
322 port_id = service_->OpenSpecialChannelToTab( in ConnectCommand()
328 DCHECK(service_); in ConnectCommand()
329 port_id = service_->OpenSpecialChannelToExtension( in ConnectCommand()
[all …]
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dextension_popup_controller_unittest.mm35 service_ = new ExtensionService(this,
41 service_->set_extensions_enabled(true);
42 service_->set_show_extensions_prompts(false);
43 service_->ClearProvidersForTesting();
44 service_->Init();
49 service_ = NULL;
58 return service_.get();
64 scoped_refptr<ExtensionService> service_;
/external/chromium/chrome/browser/search_engines/
Dtemplate_url_model_test_util.cc70 return service_.get(); in GetWebDataService()
74 scoped_refptr<WebDataService> service_; member in TemplateURLModelTestingProfile
114 service_ = new WebDataService; in SetUp()
115 ASSERT_TRUE(service_->InitWithPath(path)); in SetUp()
131 if (service_.get()) in TearDown()
132 service_->Shutdown(); in TearDown()
198 model()->service_ = profile_->GetWebDataService(Profile::EXPLICIT_ACCESS); in ChangeModelToLoadState()

1234