100+ results for 'ServiceIsNullWhileTesting'

Not the results you expected?

browser_context_keyed_base_factory.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 121 lines

67 // SetTestingFactory() to make sure our contexts don't directly refer to the

68 // services they use.)

69 bool ServiceIsNULLWhileTesting() const override;

70

71 // Interface for people building a type of BrowserContextKeyedFactory: -------

96 user_prefs::PrefRegistrySyncable* registry) {}

97

98 // Because of ServiceIsNULLWhileTesting(), we need a way to tell different

99 // subclasses that they should disable testing.

100 virtual void SetEmptyTestingFactory(content::BrowserContext* context) = 0;

input_method_api.h (git://github.com/chromium/chromium.git) C Header · 347 lines

329 return "InputMethodAPI";

330 }

331 static const bool kServiceIsNULLWhileTesting = true;

332

333 content::BrowserContext* const context_;

web_view_web_data_service_wrapper_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 98 lines

92 }

93

94 bool WebViewWebDataServiceWrapperFactory::ServiceIsNULLWhileTesting() const {

95 return true;

96 }

browser_context_keyed_base_factory.cc (https://gitlab.com/f3822/qtwebengine-chromium) C++ · 120 lines

95 }

96

97 bool BrowserContextKeyedBaseFactory::ServiceIsNULLWhileTesting() const {

98 return false;

99 }

managed_mode_private_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 122 lines

110 return "ManagedModeAPI";

111 }

112 static const bool kServiceIsNULLWhileTesting = true;

113

114 // Created lazily upon OnListenerAdded.

chrome_speech_recognition_preferences.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 123 lines

74 virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) OVERRIDE;

75 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;

76 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

77 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;

78

webcam_private_api.h (https://github.com/chromium/chromium.git) C Header · 285 lines

68 return "WebcamPrivateAPI";

69 }

70 static const bool kServiceIsNULLWhileTesting = true;

71 static const bool kServiceRedirectedInIncognito = true;

72

chrome_speech_recognition_preferences.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 224 lines

85

86 bool ChromeSpeechRecognitionPreferences::Factory::

87 ServiceIsNULLWhileTesting() const {

88 return true;

89 }

preference_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 148 lines

64 return "PreferenceAPI";

65 }

66 static const bool kServiceIsNULLWhileTesting = true;

67

68 // Created lazily upon OnListenerAdded.

management_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 228 lines

216 return "ManagementAPI";

217 }

218 static const bool kServiceIsNULLWhileTesting = true;

219

220 // Created lazily upon OnListenerAdded.

media_player_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 104 lines

93 }

94 static const bool kServiceRedirectedInIncognito = true;

95 static const bool kServiceIsNULLWhileTesting = true;

96

97 scoped_ptr<MediaPlayerEventRouter> media_player_event_router_;

font_settings_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 323 lines

86 return "FontSettingsAPI";

87 }

88 static const bool kServiceIsNULLWhileTesting = true;

89

90 scoped_ptr<FontSettingsEventRouter> font_settings_event_router_;

easy_unlock_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 134 lines

127 }

128

129 bool EasyUnlockServiceFactory::ServiceIsNULLWhileTesting() const {

130 // Don't create the service for TestingProfile used in unit_tests because

131 // EasyUnlockService uses ExtensionSystem::ready().Post, which expects

rules_registry_service.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 153 lines

127 }

128 static const bool kServiceHasOwnInstanceInIncognito = true;

129 static const bool kServiceIsNULLWhileTesting = true;

130

131 int current_rules_registry_id_;

bluetooth_low_energy_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 405 lines

43 static const char* service_name() { return "BluetoothLowEnergyAPI"; }

44 static const bool kServiceRedirectedInIncognito = true;

45 static const bool kServiceIsNULLWhileTesting = true;

46

47 private:

profile_keyed_base_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 130 lines

105 }

106

107 bool ProfileKeyedBaseFactory::ServiceIsNULLWhileTesting() const {

108 return false;

109 }

hid_device_manager.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 133 lines

84 static const char* service_name() { return "HidDeviceManager"; }

85 static const bool kServiceHasOwnInstanceInIncognito = true;

86 static const bool kServiceIsNULLWhileTesting = true;

87

88 // EventRouter::Observer:

feature_notification_guide_service_factory.cc (https://github.com/chromium/chromium.git) C++ · 130 lines

124 }

125

126 bool FeatureNotificationGuideServiceFactory::ServiceIsNULLWhileTesting() const {

127 return true;

128 }

cookies_api.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 202 lines

190 return "CookiesAPI";

191 }

192 static const bool kServiceIsNULLWhileTesting = true;

193

194 // Created lazily upon OnListenerAdded.

authentication_service_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 96 lines

92 }

93

94 bool AuthenticationServiceFactory::ServiceIsNULLWhileTesting() const {

95 return true;

96 }

ios_chrome_password_store_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 105 lines

101 }

102

103 bool IOSChromePasswordStoreFactory::ServiceIsNULLWhileTesting() const {

104 return true;

105 }

browser_context_dependency_manager.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 107 lines

52 // test BrowserContexts - these contexts will not create services for any

53 // BrowserContextKeyedBaseFactories that return true from

54 // ServiceIsNULLWhileTesting().

55 void CreateBrowserContextServicesForTest(content::BrowserContext* context);

56

networking_private_delegate_factory.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 88 lines

76 content::BrowserContext* context) const override;

77 bool ServiceIsCreatedWithBrowserContext() const override;

78 bool ServiceIsNULLWhileTesting() const override;

79

80 scoped_ptr<VerifyDelegateFactory> verify_factory_;

session_service_factory.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 73 lines

68 content::BrowserContext* profile) const override;

69 bool ServiceIsCreatedWithBrowserContext() const override;

70 bool ServiceIsNULLWhileTesting() const override;

71 };

72

shell_window_registry.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 132 lines

118 content::BrowserContext* profile) const OVERRIDE;

119 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;

120 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

121 };

122

push_messaging_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 155 lines

129 return "PushMessagingAPI";

130 }

131 static const bool kServiceIsNULLWhileTesting = true;

132

133 // content::NotificationDelegate implementation.

tts_extension_api.h (https://github.com/chromium/chromium.git) C Header · 90 lines

83 // BrowserContextKeyedAPI implementation.

84 static const char* service_name() { return "TtsAPI"; }

85 static const bool kServiceIsNULLWhileTesting = true;

86 };

87

media_galleries_private_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 190 lines

81 return "MediaGalleriesPrivateAPI";

82 }

83 static const bool kServiceIsNULLWhileTesting = true;

84

85 // Current profile.

verify_trust_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 114 lines

73 static const bool kServiceRedirectedInIncognito = true;

74 static const bool kServiceIsCreatedWithBrowserContext = false;

75 static const bool kServiceIsNULLWhileTesting = true;

76

77 private:

session_restore_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 61 lines

54 return "SessionRestoreAPI";

55 }

56 static const bool kServiceIsNULLWhileTesting = true;

57 };

58

web_data_service_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 117 lines

111 }

112

113 bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const {

114 return true;

115 }

in_memory_url_index_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 66 lines

62 }

63

64 bool InMemoryURLIndexFactory::ServiceIsNULLWhileTesting() const {

65 return true;

66 }

favicon_service_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 55 lines

51 }

52

53 bool FaviconServiceFactory::ServiceIsNULLWhileTesting() const {

54 return true;

55 }

plugin_prefs_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 92 lines

84 }

85

86 bool PluginPrefsFactory::ServiceIsNULLWhileTesting() const {

87 return true;

88 }

policy_cert_service_factory.h (https://github.com/chromium/chromium.git) C Header · 81 lines

74 content::BrowserContext* GetBrowserContextToUse(

75 content::BrowserContext* context) const override;

76 bool ServiceIsNULLWhileTesting() const override;

77 };

78

user_cloud_policy_invalidator_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 68 lines

61 }

62

63 bool UserCloudPolicyInvalidatorFactory::ServiceIsNULLWhileTesting() const {

64 // Not used in tests.

65 return true;

search_engines_private_event_router_factory.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 52 lines

32 content::BrowserContext* context) const override;

33 bool ServiceIsCreatedWithBrowserContext() const override;

34 bool ServiceIsNULLWhileTesting() const override;

35

36 private:

serial_event_dispatcher.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 83 lines

45 static const char* service_name() { return "SerialEventDispatcher"; }

46 static const bool kServiceHasOwnInstanceInIncognito = true;

47 static const bool kServiceIsNULLWhileTesting = true;

48

49 struct ReceiveParams {

browser_state_keyed_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 139 lines

61 }

62

63 bool BrowserStateKeyedServiceFactory::ServiceIsNULLWhileTesting() const {

64 return KeyedServiceBaseFactory::ServiceIsNULLWhileTesting();

tcp_server_socket_event_dispatcher.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 100 lines

53 static const char* service_name() { return "TCPServerSocketEventDispatcher"; }

54 static const bool kServiceHasOwnInstanceInIncognito = true;

55 static const bool kServiceIsNULLWhileTesting = true;

56

57 // base::Bind supports methods with up to 6 parameters. AcceptParams is used

shortcuts_backend_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 105 lines

72 }

73

74 bool ShortcutsBackendFactory::ServiceIsNULLWhileTesting() const {

75 return true;

76 }

refcounted_browser_state_keyed_service_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 120 lines

68 }

69

70 bool RefcountedBrowserStateKeyedServiceFactory::ServiceIsNULLWhileTesting()

71 const {

72 return KeyedServiceBaseFactory::ServiceIsNULLWhileTesting();

content_blocking_api.h (https://github.com/ric2b/Vivaldi-browser.git) C Header · 446 lines

83 static const char* service_name() { return "contentBlockingAPI"; }

84

85 static const bool kServiceIsNULLWhileTesting = true;

86 static const bool kServiceRedirectedInIncognito = true;

87

calendar_api.h (https://github.com/ric2b/Vivaldi-browser.git) C Header · 658 lines

94 // BrowserContextKeyedAPI implementation.

95 static const char* service_name() { return "CalendarAPI"; }

96 static const bool kServiceIsNULLWhileTesting = true;

97 static const bool kServiceRedirectedInIncognito = true;

98

streams_private_api.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 104 lines

69 return "StreamsPrivateAPI";

70 }

71 static const bool kServiceIsNULLWhileTesting = true;

72 static const bool kServiceRedirectedInIncognito = true;

73

input_ime_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 223 lines

213 return "InputImeAPI";

214 }

215 static const bool kServiceIsNULLWhileTesting = true;

216

217 Profile* const profile_;

web_data_service_factory.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 81 lines

74 KeyedService* BuildServiceInstanceFor(

75 content::BrowserContext* profile) const override;

76 bool ServiceIsNULLWhileTesting() const override;

77

78 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory);

autocheckout_whitelist_manager_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 89 lines

82 }

83

84 bool WhitelistManagerFactory::ServiceIsNULLWhileTesting() const {

85 return true;

86 }

tts_extension_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 85 lines

78 return "TtsAPI";

79 }

80 static const bool kServiceIsNULLWhileTesting = true;

81 };

82

networking_private_event_router_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 56 lines

50 }

51

52 bool NetworkingPrivateEventRouterFactory::ServiceIsNULLWhileTesting() const {

53 return true;

54 }

ios_chrome_tab_restore_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 62 lines

52 IOSChromeTabRestoreServiceFactory::~IOSChromeTabRestoreServiceFactory() {}

53

54 bool IOSChromeTabRestoreServiceFactory::ServiceIsNULLWhileTesting() const {

55 return true;

56 }

cert_db_initializer_factory.h (https://github.com/chromium/chromium.git) C Header · 59 lines

27 // individual tests or they can create their own instances of the service.

28 // * In unittests: CertDbInitializer is not created by default (see

29 // `ServiceIsNULLWhileTesting()`).

30 class CertDbInitializerFactory : public BrowserContextKeyedServiceFactory {

31 public:

50 KeyedService* BuildServiceInstanceFor(

51 content::BrowserContext* context) const override;

52 bool ServiceIsNULLWhileTesting() const override;

53 content::BrowserContext* GetBrowserContextToUse(

54 content::BrowserContext* context) const override;

prerender_service_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 62 lines

56 }

57

58 bool PrerenderServiceFactory::ServiceIsNULLWhileTesting() const {

59 // PrerenderService is omitted while testing because it complicates

60 // measurements in perf tests.

history_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 100 lines

96 }

97

98 bool HistoryServiceFactory::ServiceIsNULLWhileTesting() const {

99 return true;

100 }

autocomplete_classifier_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 42 lines

33 // ProfileKeyedServiceFactory:

34 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;

35 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

36 virtual ProfileKeyedService* BuildServiceInstanceFor(

37 content::BrowserContext* profile) const OVERRIDE;

optimization_guide_service_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 121 lines

117 }

118

119 bool OptimizationGuideServiceFactory::ServiceIsNULLWhileTesting() const {

120 return true;

121 }

autofill_private_event_router_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 60 lines

54 }

55

56 bool AutofillPrivateEventRouterFactory::ServiceIsNULLWhileTesting() const {

57 return false;

58 }

browser_context_keyed_api_factory.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 142 lines

42

43 // If set to true, GetForProfile returns NULL for TestingBrowserContexts.

44 static const bool kServiceIsNULLWhileTesting = false;

45

46 // Users of this factory template must define a GetFactoryInstance()

131 }

132

133 bool ServiceIsNULLWhileTesting() const override {

134 return T::kServiceIsNULLWhileTesting;

password_store_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 55 lines

48 virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) OVERRIDE;

49 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;

50 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

51

52 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory);

input_method_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 74 lines

59 return "InputMethodAPI";

60 }

61 static const bool kServiceIsNULLWhileTesting = true;

62

63 Profile* const profile_;

background_contents_service_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 41 lines

36 virtual bool ServiceHasOwnInstanceInIncognito() const OVERRIDE;

37 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;

38 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

39 };

40

app_list_syncable_service_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 103 lines

97 }

98

99 bool AppListSyncableServiceFactory::ServiceIsNULLWhileTesting() const {

100 return true;

101 }

webstore_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 104 lines

89 // BrowserContextKeyedAPI implementation.

90 static const char* service_name() { return "WebstoreAPI"; }

91 static const bool kServiceIsNULLWhileTesting = true;

92

93 ObservedInstallInfoList download_progress_listeners_;

dependency_manager.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 139 lines

67 KeyedServiceBaseFactory* factory =

68 static_cast<KeyedServiceBaseFactory*>(dependency_node);

69 if (is_testing_context && factory->ServiceIsNULLWhileTesting() &&

70 !factory->HasTestingFactory(context)) {

71 factory->SetEmptyTestingFactory(context);

tcp_socket_event_dispatcher.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 96 lines

51 static const char* service_name() { return "TCPSocketEventDispatcher"; }

52 static const bool kServiceHasOwnInstanceInIncognito = true;

53 static const bool kServiceIsNULLWhileTesting = true;

54

55 // base::Bind supports methods with up to 6 parameters. ReadParams is used

chrome_password_protection_service_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 82 lines

78 }

79

80 bool ChromePasswordProtectionServiceFactory::ServiceIsNULLWhileTesting() const {

81 return true;

82 }

keyed_service_base_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 136 lines

101 }

102

103 bool KeyedServiceBaseFactory::ServiceIsNULLWhileTesting() const {

104 return false;

105 }

dependency_manager.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 143 lines

69 static_cast<KeyedServiceBaseFactory*>(dependency_node);

70 base::SupportsUserData* typed_context = factory->GetTypedContext(context);

71 if (is_testing_context && factory->ServiceIsNULLWhileTesting() &&

72 !factory->HasTestingFactory(typed_context)) {

73 factory->SetEmptyTestingFactory(typed_context);

profile_keyed_api_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 113 lines

26 // See ProfileKeyedBaseFactory for usage.

27 static const bool kServiceRedirectedInIncognito = false;

28 static const bool kServiceIsNULLWhileTesting = false;

29

30 // Users of this factory template must define a GetFactoryInstance()

102 }

103

104 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE {

105 return T::kServiceIsNULLWhileTesting;

sessions_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 143 lines

131 return "SessionsAPI";

132 }

133 static const bool kServiceIsNULLWhileTesting = true;

134

135 // Created lazily upon OnListenerAdded.

bookmark_model_factory.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 56 lines

47 web::BrowserState* GetBrowserStateToUse(

48 web::BrowserState* context) const override;

49 bool ServiceIsNULLWhileTesting() const override;

50

51 DISALLOW_COPY_AND_ASSIGN(BookmarkModelFactory);

gaia_info_update_service_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 44 lines

37

38 virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) OVERRIDE;

39 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

40

41 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateServiceFactory);

browser_context_keyed_service_factory.cc (https://github.com/chromium/chromium.git) C++ · 127 lines

73 }

74

75 bool BrowserContextKeyedServiceFactory::ServiceIsNULLWhileTesting() const {

76 return KeyedServiceBaseFactory::ServiceIsNULLWhileTesting();

tabs_windows_api.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 53 lines

44 return "TabsWindowsAPI";

45 }

46 static const bool kServiceIsNULLWhileTesting = true;

47

48 scoped_ptr<WindowsEventRouter> windows_event_router_;

template_url_service_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 110 lines

104 }

105

106 bool TemplateURLServiceFactory::ServiceIsNULLWhileTesting() const {

107 return true;

108 }

autotest_private_api.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 197 lines

182 // BrowserContextKeyedAPI implementation.

183 static const char* service_name() { return "AutotestPrivateAPI"; }

184 static const bool kServiceIsNULLWhileTesting = true;

185 static const bool kServiceRedirectedInIncognito = true;

186

shell_window_geometry_cache.h (https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk) C Header · 141 lines

53 virtual BrowserContextKeyedService* BuildServiceInstanceFor(

54 content::BrowserContext* context) const OVERRIDE;

55 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

56 virtual content::BrowserContext* GetBrowserContextToUse(

57 content::BrowserContext* context) const OVERRIDE;

gaia_info_update_service_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 51 lines

47 }

48

49 bool GAIAInfoUpdateServiceFactory::ServiceIsNULLWhileTesting() const {

50 return true;

51 }

screenlock_private_api.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 98 lines

83 return "ScreenlockPrivateEventRouter";

84 }

85 static const bool kServiceIsNULLWhileTesting = true;

86 static const bool kServiceRedirectedInIncognito = true;

87

vpn_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 66 lines

42 }

43

44 bool VpnServiceFactory::ServiceIsNULLWhileTesting() const {

45 return true;

46 }

settings_private_event_router_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 59 lines

53 }

54

55 bool SettingsPrivateEventRouterFactory::ServiceIsNULLWhileTesting() const {

56 return false;

57 }

spellcheck_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 85 lines

81 }

82

83 bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const {

84 return true;

85 }

user_network_configuration_updater_factory.h (https://github.com/chromium/chromium.git) C Header · 60 lines

51 content::BrowserContext* context) const override;

52 bool ServiceIsCreatedWithBrowserContext() const override;

53 bool ServiceIsNULLWhileTesting() const override;

54 KeyedService* BuildServiceInstanceFor(

55 content::BrowserContext* context) const override;

simple_dependency_manager.h (https://github.com/chromium/chromium.git) C Header · 54 lines

35 // Create services for test BrowserContexts - these contexts will not create

36 // services for any SimpleKeyedBaseFactories that return true from

37 // ServiceIsNULLWhileTesting().

38 void CreateServicesForTest(SimpleFactoryKey* key);

39

user_cloud_policy_token_forwarder_factory.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 65 lines

58 }

59

60 bool UserCloudPolicyTokenForwarderFactory::ServiceIsNULLWhileTesting() const {

61 // This is only needed in a handful of tests that manually create the object.

62 return true;

bluetooth_socket_event_dispatcher.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 119 lines

58 static const char* service_name() { return "BluetoothSocketEventDispatcher"; }

59 static const bool kServiceHasOwnInstanceInIncognito = true;

60 static const bool kServiceIsNULLWhileTesting = true;

61

62 // base::Bind supports methods with up to 6 parameters. SocketParams is used

refcounted_browser_context_keyed_service_factory.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 121 lines

68 }

69

70 bool RefcountedBrowserContextKeyedServiceFactory::ServiceIsNULLWhileTesting()

71 const {

72 return KeyedServiceBaseFactory::ServiceIsNULLWhileTesting();

passwords_private_event_router_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 62 lines

56 }

57

58 bool PasswordsPrivateEventRouterFactory::ServiceIsNULLWhileTesting() const {

59 return true;

60 }

app_window_geometry_cache.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 159 lines

53 KeyedService* BuildServiceInstanceFor(

54 content::BrowserContext* context) const override;

55 bool ServiceIsNULLWhileTesting() const override;

56 content::BrowserContext* GetBrowserContextToUse(

57 content::BrowserContext* context) const override;

session_service_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 92 lines

88 }

89

90 bool SessionServiceFactory::ServiceIsNULLWhileTesting() const {

91 return true;

92 }

web_data_service_factory.h (https://github.com/chromium/chromium.git) C Header · 79 lines

72 web::BrowserState* GetBrowserStateToUse(

73 web::BrowserState* context) const override;

74 bool ServiceIsNULLWhileTesting() const override;

75 };

76

domain_diversity_reporter_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 83 lines

75 }

76

77 bool DomainDiversityReporterFactory::ServiceIsNULLWhileTesting() const {

78 return true;

79 }

managed_bookmark_service_factory.mm (https://github.com/chromium/chromium.git) Objective C++ · 82 lines

78 }

79

80 bool ManagedBookmarkServiceFactory::ServiceIsNULLWhileTesting() const {

81 return true;

82 }

password_manager_settings_service_factory.cc (https://github.com/chromium/chromium.git) C++ · 71 lines

67 }

68

69 bool PasswordManagerSettingsServiceFactory::ServiceIsNULLWhileTesting() const {

70 return true;

71 }

bluetooth_private_api.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 152 lines

40 static const char* service_name() { return "BluetoothPrivateAPI"; }

41 static const bool kServiceRedirectedInIncognito = true;

42 static const bool kServiceIsNULLWhileTesting = true;

43

44 private:

autocomplete_classifier_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 78 lines

72 }

73

74 bool AutocompleteClassifierFactory::ServiceIsNULLWhileTesting() const {

75 return true;

76 }

braille_display_private_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 112 lines

76 }

77 // Override the default so the service is not created in tests.

78 static const bool kServiceIsNULLWhileTesting = true;

79 };

80

history_api.h (git://github.com/chromium/chromium.git) C Header · 199 lines

81 return "HistoryAPI";

82 }

83 static const bool kServiceIsNULLWhileTesting = true;

84

85 // Created lazily upon OnListenerAdded.

history_service_factory.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 57 lines

48 web::BrowserState* GetBrowserStateToUse(

49 web::BrowserState* context) const override;

50 bool ServiceIsNULLWhileTesting() const override;

51

52 DISALLOW_COPY_AND_ASSIGN(HistoryServiceFactory);

automatic_profile_resetter_factory.h (https://gitlab.com/jonnialva90/iridium-browser) C Header · 57 lines

50 user_prefs::PrefRegistrySyncable* registry) override;

51 bool ServiceIsCreatedWithBrowserContext() const override;

52 bool ServiceIsNULLWhileTesting() const override;

53

54 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterFactory);

chrome_direct_setting_api.h (https://gitlab.com/0072016/Facebook-SDK-) C Header · 65 lines

51 void OnPrefChanged(PrefService* pref_service, const std::string& pref_key);

52

53 static const bool kServiceIsNULLWhileTesting = true;

54 static const bool kServiceRedirectedInIncognito = false;

55

browser_state_dependency_manager.h (https://github.com/chromium/chromium.git) C Header · 85 lines

48 // test BrowserStates - these contexts will not create services for any

49 // BrowserStateKeyedBaseFactories that return true from

50 // ServiceIsNULLWhileTesting().

51 void CreateBrowserStateServicesForTest(web::BrowserState* context);

52

bookmark_model_factory.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 91 lines

85 }

86

87 bool BookmarkModelFactory::ServiceIsNULLWhileTesting() const {

88 return true;

89 }

browser_state_keyed_service_factory.h (https://github.com/chromium/chromium.git) C Header · 136 lines

90 // SetTestingFactory() to make sure our contexts don't directly refer to the

91 // services they use.)

92 bool ServiceIsNULLWhileTesting() const override;

93

94 // Interface for people building a type of BrowserStateKeyedFactory: -------

bluetooth_api_factory.h (https://bitbucket.org/peixuan/chromium_r197479_base.git) C Header · 37 lines

30 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;

31 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;

32 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

33 };

34