Documentation ¶
Overview ¶
Package policy contains local Tast tests for user policies.
Index ¶
- func AccessibilityPolicies(ctx context.Context, s *testing.State)
- func AllowCrossOriginAuthPrompt(ctx context.Context, s *testing.State)
- func AllowDeletingBrowserHistory(ctx context.Context, s *testing.State)
- func AllowDinosaurEasterEgg(ctx context.Context, s *testing.State)
- func AllowDinosaurEasterEggAshLacros(ctx context.Context, s *testing.State)
- func AllowDinosaurEasterEggEnrolled(ctx context.Context, s *testing.State)
- func AllowScreenLock(ctx context.Context, s *testing.State)
- func AllowWakeLocks(ctx context.Context, s *testing.State)
- func AllowedLanguages(ctx context.Context, s *testing.State)
- func AlternateErrorPagesEnabled(ctx context.Context, s *testing.State)
- func ArcBackupRestoreServiceEnabled(ctx context.Context, s *testing.State)
- func ArcEnabled(ctx context.Context, s *testing.State)
- func AudioCaptureAllowed(ctx context.Context, s *testing.State)
- func AudioOutputAllowed(ctx context.Context, s *testing.State)
- func AutoOpenAllowedForURLs(ctx context.Context, s *testing.State)
- func AutoclickEnabled(ctx context.Context, s *testing.State)
- func AutofillAddressEnabled(ctx context.Context, s *testing.State)
- func AutofillCreditCardEnabled(ctx context.Context, s *testing.State)
- func AutoplayAllowed(ctx context.Context, s *testing.State)
- func BasicAuthOverHTTPEnabled(ctx context.Context, s *testing.State)
- func BlockThirdPartyCookies(ctx context.Context, s *testing.State)
- func BookmarkBarEnabled(ctx context.Context, s *testing.State)
- func ChromeOsLockOnIdleSuspend(ctx context.Context, s *testing.State)
- func ChromePolicyPageStatusTimestamps(ctx context.Context, s *testing.State)
- func CookiesAllowedForUrls(ctx context.Context, s *testing.State)
- func CookiesBlockedForUrls(ctx context.Context, s *testing.State)
- func DefaultGeolocationSetting(ctx context.Context, s *testing.State)
- func DefaultJavaScriptSetting(ctx context.Context, s *testing.State)
- func DefaultJavascriptJitSetting(ctx context.Context, s *testing.State)
- func DefaultNotificationsSetting(ctx context.Context, s *testing.State)
- func DefaultSearchProviderEnabled(ctx context.Context, s *testing.State)
- func DefaultSearchProviderKeyword(ctx context.Context, s *testing.State)
- func DefaultSearchProviderName(ctx context.Context, s *testing.State)
- func DefaultSearchProviderSearchURL(ctx context.Context, s *testing.State)
- func DefaultSearchProviderSuggestURL(ctx context.Context, s *testing.State)
- func DeletePrintJobHistoryAllowed(ctx context.Context, s *testing.State)
- func DeveloperToolsAvailability(ctx context.Context, s *testing.State)
- func DeviceAdvancedBatteryChargeMode(ctx context.Context, s *testing.State)
- func DeviceBatteryChargeMode(ctx context.Context, s *testing.State)
- func DeviceDockMacAddressSource(ctx context.Context, s *testing.State)
- func DeviceEphemeralUsersEnabled(ctx context.Context, s *testing.State)
- func DeviceGuestModeEnabled(ctx context.Context, s *testing.State)
- func DeviceMinimumVersionNotifications(ctx context.Context, s *testing.State)
- func DeviceOffHours(ctx context.Context, s *testing.State)
- func DevicePowerPeakShift(ctx context.Context, s *testing.State)
- func DeviceShowUserNamesOnSignin(ctx context.Context, s *testing.State)
- func DeviceWilcoDtcAllowedEnrolled(ctx context.Context, s *testing.State)
- func DictationEnabled(ctx context.Context, s *testing.State)
- func Disable3DAPIs(ctx context.Context, s *testing.State)
- func DisableScreenshotsCaptureMode(ctx context.Context, s *testing.State)
- func DisableScreenshotsExtension(ctx context.Context, s *testing.State)
- func DisableScreenshotsHotkey(ctx context.Context, s *testing.State)
- func DownloadRestrictions(ctx context.Context, s *testing.State)
- func EditBookmarksEnabled(ctx context.Context, s *testing.State)
- func EnableA11yImageLabels(ctx context.Context, s *testing.State)
- func ExtensionAllowedTypes(ctx context.Context, s *testing.State)
- func ExtensionInstallEventLoggingEnabled(ctx context.Context, s *testing.State)
- func ExtensionInstallForceList(ctx context.Context, s *testing.State)
- func ExtensionInstallPolicyCheck(ctx context.Context, s *testing.State)
- func FakeEnrollmentRealGAIA(ctx context.Context, s *testing.State)
- func FileSystemWriteBlockedForUrls(ctx context.Context, s *testing.State)
- func ForceGoogleSafeSearch(ctx context.Context, s *testing.State)
- func ForceSafeSearch(ctx context.Context, s *testing.State)
- func ForceYouTubeRestrict(ctx context.Context, s *testing.State)
- func ForceYouTubeSafetyMode(ctx context.Context, s *testing.State)
- func FullscreenAllowed(ctx context.Context, s *testing.State)
- func HTTPSOnlyMode(ctx context.Context, s *testing.State)
- func HideWebStoreIcon(ctx context.Context, s *testing.State)
- func HistoryClustersVisible(ctx context.Context, s *testing.State)
- func Homepage(ctx context.Context, s *testing.State)
- func ImagesForURLCheck(ctx context.Context, s *testing.State)
- func IncognitoModeAvailability(ctx context.Context, s *testing.State)
- func JavaScriptAllowedForUrls(ctx context.Context, s *testing.State)
- func JavaScriptBlockedForUrls(ctx context.Context, s *testing.State)
- func KeyboardDefaultToFunctionKeys(ctx context.Context, s *testing.State)
- func LacrosMainProfileLogin(ctx context.Context, s *testing.State)
- func LacrosSecondaryProfilesAllowed(ctx context.Context, s *testing.State)
- func ManagedBookmarks(ctx context.Context, s *testing.State)
- func NewTabPageLocation(ctx context.Context, s *testing.State)
- func NotEnterpriseOwned(ctx context.Context, s *testing.State)
- func NotificationsAllowedForUrls(ctx context.Context, s *testing.State)
- func NotificationsBlockedForUrls(ctx context.Context, s *testing.State)
- func PasswordManagerEnabled(ctx context.Context, s *testing.State)
- func PinUnlockMaximumLength(ctx context.Context, s *testing.State)
- func PinUnlockMinimumLength(ctx context.Context, s *testing.State)
- func PinUnlockWeakPinsAllowed(ctx context.Context, s *testing.State)
- func PinnedLauncherApps(ctx context.Context, s *testing.State)
- func PluginVMDataCollectionAllowed(ctx context.Context, s *testing.State)
- func PolicyRefreshRate(ctx context.Context, s *testing.State)
- func PopupsForURLCheck(ctx context.Context, s *testing.State)
- func PreventDefaultProfileRemoval(ctx context.Context, s *testing.State)
- func PrintPdfAsImageDefault(ctx context.Context, s *testing.State)
- func Printers(ctx context.Context, s *testing.State)
- func PrintersBulkAccessMode(ctx context.Context, s *testing.State)
- func PrintingBackgroundGraphicsDefault(ctx context.Context, s *testing.State)
- func PrintingEnabled(ctx context.Context, s *testing.State)
- func PromptForDownloadLocation(ctx context.Context, s *testing.State)
- func QuickUnlockModeAllowlist(ctx context.Context, s *testing.State)
- func ReadyErrorLog(ctx context.Context, s *testing.State)
- func ReportUploadFrequency(ctx context.Context, s *testing.State)
- func RequiredClientCertificate(ctx context.Context, s *testing.State)
- func SSLErrorOverrideAllowed(ctx context.Context, s *testing.State)
- func SafeBrowsingExtendedReportingEnabled(ctx context.Context, s *testing.State)
- func SafeBrowsingProtectionLevel(ctx context.Context, s *testing.State)
- func SafeSitesFilterBehavior(ctx context.Context, s *testing.State)
- func SavingBrowserHistoryDisabled(ctx context.Context, s *testing.State)
- func ScreenBrightnessPercent(ctx context.Context, s *testing.State)
- func ScreenCaptureAllowed(ctx context.Context, s *testing.State)
- func ScrollToTextFragmentEnabled(ctx context.Context, s *testing.State)
- func SearchSuggestEnabled(ctx context.Context, s *testing.State)
- func SecondaryGoogleAccountSigninAllowed(ctx context.Context, s *testing.State)
- func SharedArrayBufferUnrestrictedAccessAllowed(ctx context.Context, s *testing.State)
- func SharedArrayBufferUnrestrictedAccessAllowedAsh(ctx context.Context, s *testing.State)
- func SharedManagedGuestSessionCleanup(ctx context.Context, s *testing.State)
- func ShowAccessibilityOptionsInSystemTrayMenu(ctx context.Context, s *testing.State)
- func ShowFullUrlsInAddressBar(ctx context.Context, s *testing.State)
- func ShowHomeButton(ctx context.Context, s *testing.State)
- func ShowLogoutButtonInTray(ctx context.Context, s *testing.State)
- func SpellCheckEnabled(ctx context.Context, s *testing.State)
- func SpellCheckServiceEnabled(ctx context.Context, s *testing.State)
- func SpellcheckLanguage(ctx context.Context, s *testing.State)
- func SystemProxySettings(ctx context.Context, s *testing.State)
- func SystemTimezone(ctx context.Context, s *testing.State)
- func SystemTimezoneAutomaticDetection(ctx context.Context, s *testing.State)
- func TabCaptureAllowedByOrigins(ctx context.Context, s *testing.State)
- func TranslateEnabled(ctx context.Context, s *testing.State)
- func URLCheck(ctx context.Context, s *testing.State)
- func UpdateEnginePolicies(ctx context.Context, s *testing.State)
- func UserAvatarImage(ctx context.Context, s *testing.State)
- func UserFeedbackAllowed(ctx context.Context, s *testing.State)
- func UserPrintersAllowed(ctx context.Context, s *testing.State)
- func VideoCaptureAllowed(ctx context.Context, s *testing.State)
- func VideoCaptureAllowedUrls(ctx context.Context, s *testing.State)
- func VirtualKeyboard(ctx context.Context, s *testing.State)
- func VirtualMachinesAllowed(ctx context.Context, s *testing.State)
- func WallpaperImage(ctx context.Context, s *testing.State)
- func WebAppInstallForceList(ctx context.Context, s *testing.State)
- func WebauthnFactors(ctx context.Context, s *testing.State)
- func WindowCaptureAllowedByOrigins(ctx context.Context, s *testing.State)
- type DeviceMinimumVersionService
- type PolicyService
- func (c *PolicyService) CheckChromeAndFakeDMS(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) ContinueLogin(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) CreateFakeDMSDir(ctx context.Context, req *ppb.CreateFakeDMSDirRequest) (*empty.Empty, error)
- func (c *PolicyService) EnrollUsingChrome(ctx context.Context, req *ppb.EnrollUsingChromeRequest) (*empty.Empty, error)
- func (c *PolicyService) EvalExpressionInChromeURL(ctx context.Context, req *ppb.EvalExpressionInChromeUrlRequest) (*empty.Empty, error)
- func (c *PolicyService) EvalInExtension(ctx context.Context, req *ppb.EvalInExtensionRequest) (*ppb.EvalInExtensionResponse, error)
- func (c *PolicyService) EvalStatementInExtension(ctx context.Context, req *ppb.EvalInExtensionRequest) (*empty.Empty, error)
- func (c *PolicyService) GAIAEnrollAndLoginUsingChrome(ctx context.Context, req *ppb.GAIAEnrollAndLoginUsingChromeRequest) (*empty.Empty, error)
- func (c *PolicyService) GAIAEnrollUsingChrome(ctx context.Context, req *ppb.GAIAEnrollUsingChromeRequest) (*empty.Empty, error)
- func (c *PolicyService) RemoveFakeDMSDir(ctx context.Context, req *ppb.RemoveFakeDMSDirRequest) (*empty.Empty, error)
- func (c *PolicyService) ServePolicyData(ctx context.Context, req *ppb.ServePolicyDataRequest) (*ppb.ServePolicyDataResponse, error)
- func (c *PolicyService) StartChrome(ctx context.Context, req *ppb.StartChromeRequest) (*empty.Empty, error)
- func (c *PolicyService) StartExternalDataServer(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) StopChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) StopChromeAndFakeDMS(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) StopExternalDataServer(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (c *PolicyService) UpdatePolicies(ctx context.Context, req *ppb.UpdatePoliciesRequest) (*empty.Empty, error)
- func (c *PolicyService) VerifyVisibleNotification(ctx context.Context, req *ppb.VerifyVisibleNotificationRequest) (*empty.Empty, error)
- type ReportingService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessibilityPolicies ¶
AccessibilityPolicies checks that accessibility policies have the correct value in chrome.accessibilityFeatures.
func AllowDeletingBrowserHistory ¶
AllowDeletingBrowserHistory tests the AllowDeletingBrowserHistory policy.
func AllowScreenLock ¶
AllowScreenLock tests the AllowScreenLock policy.
func AllowWakeLocks ¶
AllowWakeLocks tests the AllowWakeLocks policy.
func AllowedLanguages ¶
AllowedLanguages tests the AllowedLanguages policy.
func ArcBackupRestoreServiceEnabled ¶
ArcBackupRestoreServiceEnabled tests the ArcBackupRestoreServiceEnabled policy.
func ArcEnabled ¶
ArcEnabled tests the ArcEnabled policy.
func AudioCaptureAllowed ¶
AudioCaptureAllowed tests the AudioCaptureAllowed policy.
func AutoOpenAllowedForURLs ¶
AutoOpenAllowedForURLs tests the AutoOpenAllowedForURLs policy.
func AutoclickEnabled ¶
AutoclickEnabled tests the AutoclickEnabled policy.
func AutoplayAllowed ¶
AutoplayAllowed tests the AutoplayAllowed policy.
func BookmarkBarEnabled ¶
BookmarkBarEnabled validates the UI behavior of the different states the policy introduces. When enabled the bookmark bar appears with list of bookmarks otherwise it should not appear.
func ChromeOsLockOnIdleSuspend ¶
ChromeOsLockOnIdleSuspend tests the ChromeOsLockOnIdleSuspend policy.
func DefaultGeolocationSetting ¶
DefaultGeolocationSetting tests the DefaultGeolocationSetting policy.
func DefaultNotificationsSetting ¶
DefaultNotificationsSetting tests the DefaultNotificationsSetting policy.
func DeletePrintJobHistoryAllowed ¶
DeletePrintJobHistoryAllowed tests the DeletePrintJobHistoryAllowed policy.
func DeviceAdvancedBatteryChargeMode ¶
DeviceAdvancedBatteryChargeMode verifies DeviceAdvancedBatteryCharge policy group (power saving policy) that lets users maximize the battery health by using a standard charging algorithm and other techniques during non-working hours. During work hours, it uses express charging to charge the battery as quickly as possible. Setting the policy to disabled or leaving it unset keeps advanced battery charge mode off.
func DeviceBatteryChargeMode ¶
DeviceBatteryChargeMode verifies DeviceBatteryCharge policies, a group of power management policies, dynamically controls battery charging state to minimize stress and wear-out due to the exposure of rapid charging/discharging cycles and extend the battery life. If the policy is set then battery charge mode will be applied on the DUT. Leaving the policy unset applies the standard battery charge mode.
The Policy takes either one of the five values ranging from 1 to 5: 1 = Fully charge battery at a standard rate. 2 = Charge battery using fast charging technology. 3 = Charge battery for devices that are primarily connected to an external power source. 4 = Adaptive charge battery based on battery usage pattern. 5 = Charge battery while it is within a fixed range. If Custom battery charge mode (5) is selected, then DeviceBatteryChargeCustomStartCharging and DeviceBatteryChargeCustomStopCharging values need to be specified alongside.
func DevicePowerPeakShift ¶
DevicePowerPeakShift verifies DevicePowerPeakShift policy group (power saving policy) that minimize alternating current usage during peak hours. [ DevicePowerPeakShiftEnabled requires DevicePowerPeakShiftBatteryThreshold & DevicePowerPeakShiftDayConfig to be set. Leaving them unset keeps peak shift off.]
Brief: Policy DevicePowerPeakShiftDayConfig has "start_time", "end_time" and "charge_start_time" fields. When DUT is above battery threshold, set through DevicePowerPeakShiftBatteryThreshold policy and the current time is in between "start_time" and "end_time", DUT uses battery even if it is plugged into AC. Even after the "end_time", DUT runs on AC till "charge_start_time" but doesn't charge the battery.
func DeviceWilcoDtcAllowedEnrolled ¶
DeviceWilcoDtcAllowedEnrolled tests the DeviceWilcoDtcAllowed policy. TODO(b/189457904): rename to policy.DeviceWilcoDtcAllowed once stable and remote policy.DeviceWilcoDtcAllowed removed.
func DictationEnabled ¶
DictationEnabled tests the DictationEnabled policy.
func EditBookmarksEnabled ¶
EditBookmarksEnabled tests the EditBookmarksEnabaled policy for the enabled, disabled and unset cases.
func ExtensionAllowedTypes ¶
ExtensionAllowedTypes tests the ExtensionAllowedTypes policy.
func FakeEnrollmentRealGAIA ¶
FakeEnrollmentRealGAIA tests that real GAIA account can be used along with fake enrollment.
func FileSystemWriteBlockedForUrls ¶
FileSystemWriteBlockedForUrls tests the FileSystemWriteBlockedForUrls policy.
func ForceYouTubeRestrict ¶
ForceYouTubeRestrict tests the behavior of the ForceYouTubeRestrict Enterprise policy.
func FullscreenAllowed ¶
FullscreenAllowed tests the FullscreenAllowed policy.
func HideWebStoreIcon ¶
HideWebStoreIcon tests the HideWebStoreIcon policy.
func KeyboardDefaultToFunctionKeys ¶
KeyboardDefaultToFunctionKeys tests default function key action. Search+function keys should perform the alternate action.
func NotificationsAllowedForUrls ¶
NotificationsAllowedForUrls tests the NotificationsAllowedForUrls policy.
func NotificationsBlockedForUrls ¶
NotificationsBlockedForUrls tests the NotificationsBlockedForUrls policy.
func PasswordManagerEnabled ¶
PasswordManagerEnabled tests the PasswordManagerEnabled policy.
func PolicyRefreshRate ¶
PolicyRefreshRate tests the PolicyRefreshRate policy.
func PrintPdfAsImageDefault ¶
PrintPdfAsImageDefault tests the PrintPdfAsImageDefault policy.
func PrintingBackgroundGraphicsDefault ¶
PrintingBackgroundGraphicsDefault tests the PrintingBackgroundGraphicsDefault policy.
func PrintingEnabled ¶
PrintingEnabled tests the PrintingEnabled policy.
func PromptForDownloadLocation ¶
PromptForDownloadLocation tests the PromptForDownloadLocation policy.
func QuickUnlockModeAllowlist ¶
QuickUnlockModeAllowlist sets up multiple policies, but only tests behavior that it controls. It tests "setup" and "quick_unlock", but not "webauthn" or other auth usages. So it will include just enough test cases to verify:
- QuickUnlockModeAllowlist enabled will enable "setup" the auth method and using it for "quick_unlock", even if all other policies disable it.
- QuickUnlockModeAllowlist disabled will disable using the auth method for "quick_unlock" even if all other policies enabled it, but will not disable "setup" for that auth method.
func SharedArrayBufferUnrestrictedAccessAllowed ¶
SharedArrayBufferUnrestrictedAccessAllowed tests the SharedArrayBufferUnrestrictedAccessAllowed policy.
func SharedArrayBufferUnrestrictedAccessAllowedAsh ¶
SharedArrayBufferUnrestrictedAccessAllowedAsh tests the SharedArrayBufferUnrestrictedAccessAllowed policy in Ash.
func SharedManagedGuestSessionCleanup ¶
SharedManagedGuestSessionCleanup tests that chrome.login.endSession performs its cleanup operations correctly. The following cleanups are tested:
- Browsing data: This is tested by opening a browser page, setting a cookie, and checking that both the browser history and cookie are cleared after cleanup.
- Open windows: This is tested by opening a browser tab and checking that the tab is closed.
- Extensions: This is tested by checking that the background page connection is closed after cleanup. This is not a direct check since we cannot test if an extension has been reinstalled. The RestrictedManagedGuestSessionExtensionCleanupExemptList policy is also tested here.
- Clipboard: This is tested by setting clipboard data and checking that it is cleared.
Printing is not tested due to the set up needed and will be covered in a browser test in Chrome instead.
func ShowAccessibilityOptionsInSystemTrayMenu ¶
ShowAccessibilityOptionsInSystemTrayMenu tests the ShowAccessibilityOptionsInSystemTrayMenu policy.
func TabCaptureAllowedByOrigins ¶
TabCaptureAllowedByOrigins tests the namesake policy.
func TranslateEnabled ¶
TranslateEnabled validates the UI behaviour of the different states the policy introduces. When enabled/unset the translate widget appears otherwise it should not appear. The correct UI behaviours are checked.
func VideoCaptureAllowed ¶
VideoCaptureAllowed tests the VideoCaptureAllowed policy.
func VideoCaptureAllowedUrls ¶
VideoCaptureAllowedUrls tests the VideoCaptureAllowedUrls policy.
func VirtualKeyboard ¶
VirtualKeyboard applies VK related policies and uses browser's address bar to bring the virtual keyboard up. Then asserts according to expectations.
func WallpaperImage ¶
WallpaperImage tests the WallpaperImage policy.
func WebauthnFactors ¶
WebauthnFactors sets up multiple policies, but only tests behavior that it controls. It tests "setup" and "webauthn", but not "quick_unlock" or other auth usages. So it will include just enough test cases to verify:
- WebAuthnFactors enabled will enable "setup" the auth method and using it for "webauthn", even if all other policies disable it.
- WebAuthnFactors disabled will disable using the auth method for "webauthn" even if all other policies enabled it, but will not disable "setup" for that auth method.
Types ¶
type DeviceMinimumVersionService ¶
type DeviceMinimumVersionService struct {
// contains filtered or unexported fields
}
DeviceMinimumVersionService implements tast.cros.policy.DeviceMinimumVersionService.
func (*DeviceMinimumVersionService) TestUpdateRequiredScreenIsVisible ¶
func (c *DeviceMinimumVersionService) TestUpdateRequiredScreenIsVisible(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
TestUpdateRequiredScreenIsVisible creates a new instance of Chrome using the state from the existing one and checks that an update required screen with update now button is visible on the login page. Chrome is closed when function exists.
type PolicyService ¶
type PolicyService struct {
// contains filtered or unexported fields
}
PolicyService implements tast.cros.policy.PolicyService.
func (*PolicyService) CheckChromeAndFakeDMS ¶
func (c *PolicyService) CheckChromeAndFakeDMS(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
CheckChromeAndFakeDMS verifies that Chrome and FakeDMS are still running and responsive.
func (*PolicyService) ContinueLogin ¶
func (*PolicyService) CreateFakeDMSDir ¶
func (c *PolicyService) CreateFakeDMSDir(ctx context.Context, req *ppb.CreateFakeDMSDirRequest) (*empty.Empty, error)
CreateFakeDMSDir creates a directory. It needs to be removed with RemoveFakeDMSDir.
func (*PolicyService) EnrollUsingChrome ¶
func (c *PolicyService) EnrollUsingChrome(ctx context.Context, req *ppb.EnrollUsingChromeRequest) (*empty.Empty, error)
EnrollUsingChrome starts a FakeDMS insstance that serves the provided policies and enrolls the device. Specified user is logged in after this function completes.
func (*PolicyService) EvalExpressionInChromeURL ¶
func (c *PolicyService) EvalExpressionInChromeURL(ctx context.Context, req *ppb.EvalExpressionInChromeUrlRequest) (*empty.Empty, error)
func (*PolicyService) EvalInExtension ¶
func (c *PolicyService) EvalInExtension(ctx context.Context, req *ppb.EvalInExtensionRequest) (*ppb.EvalInExtensionResponse, error)
func (*PolicyService) EvalStatementInExtension ¶
func (c *PolicyService) EvalStatementInExtension(ctx context.Context, req *ppb.EvalInExtensionRequest) (*empty.Empty, error)
func (*PolicyService) GAIAEnrollAndLoginUsingChrome ¶
func (c *PolicyService) GAIAEnrollAndLoginUsingChrome(ctx context.Context, req *ppb.GAIAEnrollAndLoginUsingChromeRequest) (*empty.Empty, error)
GAIAEnrollAndLoginUsingChrome enrolls the device using dmserver. Specified user is logged in after this function completes.
func (*PolicyService) GAIAEnrollUsingChrome ¶
func (c *PolicyService) GAIAEnrollUsingChrome(ctx context.Context, req *ppb.GAIAEnrollUsingChromeRequest) (*empty.Empty, error)
GAIAEnrollUsingChrome enrolls the device using dmserver.
func (*PolicyService) RemoveFakeDMSDir ¶
func (c *PolicyService) RemoveFakeDMSDir(ctx context.Context, req *ppb.RemoveFakeDMSDirRequest) (*empty.Empty, error)
RemoveFakeDMSDir removes a directory created with CreateFakeDMSDir.
func (*PolicyService) ServePolicyData ¶
func (c *PolicyService) ServePolicyData(ctx context.Context, req *ppb.ServePolicyDataRequest) (*ppb.ServePolicyDataResponse, error)
ServePolicyData serves the provided data and returns the url and hash that need to be providied to the policy.
func (*PolicyService) StartChrome ¶
func (c *PolicyService) StartChrome(ctx context.Context, req *ppb.StartChromeRequest) (*empty.Empty, error)
func (*PolicyService) StartExternalDataServer ¶
func (c *PolicyService) StartExternalDataServer(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
StartExternalDataServer starts an instance of externaldata.Server.
func (*PolicyService) StopChrome ¶
func (*PolicyService) StopChromeAndFakeDMS ¶
func (c *PolicyService) StopChromeAndFakeDMS(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
StopChromeAndFakeDMS stops Chrome and FakeDMS.
func (*PolicyService) StopExternalDataServer ¶
func (c *PolicyService) StopExternalDataServer(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
StopExternalDataServer stops the instance of externaldata.Server.
func (*PolicyService) UpdatePolicies ¶
func (c *PolicyService) UpdatePolicies(ctx context.Context, req *ppb.UpdatePoliciesRequest) (*empty.Empty, error)
UpdatePolicies updates the policies served by FakeDMS and refreshes them in Chrome.
func (*PolicyService) VerifyVisibleNotification ¶
func (c *PolicyService) VerifyVisibleNotification(ctx context.Context, req *ppb.VerifyVisibleNotificationRequest) (*empty.Empty, error)
type ReportingService ¶
type ReportingService struct {
// contains filtered or unexported fields
}
ReportingService implements tast.cros.policy.ReportingService.
func (*ReportingService) GAIAEnrollUsingChromeAndCollectReporting ¶
func (c *ReportingService) GAIAEnrollUsingChromeAndCollectReporting(ctx context.Context, req *ppb.GAIAEnrollUsingChromeAndCollectReportingRequest) (*empty.Empty, error)
GAIAEnrollUsingChromeAndCollectReporting enrolls the device using dmserver. Specified user is logged in after this function completes.
Source Files ¶
- accessibility_policies.go
- allow_cross_origin_auth_prompt.go
- allow_deleting_browser_history.go
- allow_dinosaur_easter_egg.go
- allow_dinosaur_easter_egg_ash_lacros.go
- allow_dinosaur_easter_egg_enrolled.go
- allow_screen_lock.go
- allow_wake_locks.go
- allowed_languages.go
- alternate_error_pages_enabled.go
- arc_backup_restore_service_enabled.go
- arc_enabled.go
- audio_capture_allowed.go
- audio_output_allowed.go
- auto_open_allowed_for_urls.go
- autoclick_enabled.go
- autofill_address_enabled.go
- autofill_credit_card_enabled.go
- autoplay_allowed.go
- basic_auth_over_http_enabled.go
- block_third_party_cookies.go
- bookmark_bar_enabled.go
- chrome_os_lock_on_idle_suspend.go
- chrome_policy_page_status_timestamps.go
- cookies_allowed_for_urls.go
- cookies_blocked_for_urls.go
- default_geolocation_setting.go
- default_java_script_setting.go
- default_javascript_jit_setting.go
- default_notifications_setting.go
- default_search_provider_enabled.go
- default_search_provider_keyword.go
- default_search_provider_name.go
- default_search_provider_search_url.go
- default_search_provider_suggest_url.go
- delete_print_job_history_allowed.go
- developer_tools_availability.go
- device_advanced_battery_charge_mode.go
- device_battery_charge_mode.go
- device_dock_mac_address_source.go
- device_ephemeral_users_enabled.go
- device_guest_mode_enabled.go
- device_minimum_version_notifications.go
- device_minimum_version_service.go
- device_off_hours.go
- device_power_peak_shift.go
- device_show_user_names_on_signin.go
- device_wilco_dtc_allowed_enrolled.go
- dictation_enabled.go
- disable_3dapis.go
- disable_screenshots_capture_mode.go
- disable_screenshots_extension.go
- disable_screenshots_hotkey.go
- doc.go
- download_restrictions.go
- edit_bookmarks_enabled.go
- enable_a11y_image_labels.go
- extension_allowed_types.go
- extension_install_event_logging_enabled.go
- extension_install_force_list.go
- extension_install_policy_check.go
- fake_enrollment_real_gaia.go
- file_system_write_blocked_for_urls.go
- force_google_safe_search.go
- force_safe_search.go
- force_you_tube_restrict.go
- force_you_tube_safety_mode.go
- fullscreen_allowed.go
- hide_web_store_icon.go
- history_clusters_visible.go
- homepage.go
- https_only_mode.go
- images_for_url_check.go
- incognito_mode_availability.go
- java_script_allowed_for_urls.go
- java_script_blocked_for_urls.go
- keyboard_default_to_function_keys.go
- lacros_main_profile_login.go
- lacros_secondary_profiles_allowed.go
- managed_bookmarks.go
- new_tab_page_location.go
- not_enterprise_owned.go
- notifications_allowed_for_urls.go
- notifications_blocked_for_urls.go
- password_manager_enabled.go
- pin_unlock_maximum_length.go
- pin_unlock_minimum_length.go
- pin_unlock_weak_pins_allowed.go
- pinned_launcher_apps.go
- plugin_vm_data_collection_allowed.go
- policy_refresh_rate.go
- policy_service.go
- popups_for_url_check.go
- prevent_default_profile_removal.go
- print_pdf_as_image_default.go
- printers.go
- printers_bulk_access_mode.go
- printing_background_graphics_default.go
- printing_enabled.go
- prompt_for_download_location.go
- quick_unlock_mode_allowlist.go
- ready_error_log.go
- report_upload_frequency.go
- reporting_service.go
- required_client_certificate.go
- safe_browsing_extended_reporting_enabled.go
- safe_browsing_protection_level.go
- safe_sites_filter_behavior.go
- saving_browser_history_disabled.go
- screen_brightness_percent.go
- screen_capture_allowed.go
- scroll_to_text_fragment_enabled.go
- search_suggest_enabled.go
- secondary_google_account_signin_allowed.go
- shared_array_buffer_unrestricted_access_allowed.go
- shared_array_buffer_unrestricted_access_allowed_ash.go
- shared_managed_guest_session_cleanup.go
- show_accessibility_options_in_system_tray_menu.go
- show_full_urls_in_address_bar.go
- show_home_button.go
- show_logout_button_in_tray.go
- spell_check_enabled.go
- spell_check_service_enabled.go
- spellcheck_language.go
- ssl_error_override_allowed.go
- system_proxy_settings.go
- system_timezone.go
- system_timezone_automatic_detection.go
- tab_capture_allowed_by_origins.go
- translate_enabled.go
- update_engine_policies.go
- url_check.go
- user_avatar_image.go
- user_feedback_allowed.go
- user_printers_allowed.go
- video_capture_allowed.go
- video_capture_allowed_urls.go
- virtual_keyboard.go
- virtual_machines_allowed.go
- wallpaper_image.go
- web_app_install_force_list.go
- webauthn_factors.go
- window_capture_allowed_by_origins.go