policy

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 92 Imported by: 0

Documentation

Overview

Package policy contains local Tast tests for user policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessibilityPolicies

func AccessibilityPolicies(ctx context.Context, s *testing.State)

AccessibilityPolicies checks that accessibility policies have the correct value in chrome.accessibilityFeatures.

func AllowCrossOriginAuthPrompt

func AllowCrossOriginAuthPrompt(ctx context.Context, s *testing.State)

func AllowDeletingBrowserHistory

func AllowDeletingBrowserHistory(ctx context.Context, s *testing.State)

AllowDeletingBrowserHistory tests the AllowDeletingBrowserHistory policy.

func AllowDinosaurEasterEgg

func AllowDinosaurEasterEgg(ctx context.Context, s *testing.State)

func AllowDinosaurEasterEggAshLacros

func AllowDinosaurEasterEggAshLacros(ctx context.Context, s *testing.State)

func AllowDinosaurEasterEggEnrolled

func AllowDinosaurEasterEggEnrolled(ctx context.Context, s *testing.State)

func AllowScreenLock

func AllowScreenLock(ctx context.Context, s *testing.State)

AllowScreenLock tests the AllowScreenLock policy.

func AllowWakeLocks

func AllowWakeLocks(ctx context.Context, s *testing.State)

AllowWakeLocks tests the AllowWakeLocks policy.

func AllowedLanguages

func AllowedLanguages(ctx context.Context, s *testing.State)

AllowedLanguages tests the AllowedLanguages policy.

func AlternateErrorPagesEnabled

func AlternateErrorPagesEnabled(ctx context.Context, s *testing.State)

func ArcBackupRestoreServiceEnabled

func ArcBackupRestoreServiceEnabled(ctx context.Context, s *testing.State)

ArcBackupRestoreServiceEnabled tests the ArcBackupRestoreServiceEnabled policy.

func ArcEnabled

func ArcEnabled(ctx context.Context, s *testing.State)

ArcEnabled tests the ArcEnabled policy.

func AudioCaptureAllowed

func AudioCaptureAllowed(ctx context.Context, s *testing.State)

AudioCaptureAllowed tests the AudioCaptureAllowed policy.

func AudioOutputAllowed

func AudioOutputAllowed(ctx context.Context, s *testing.State)

func AutoOpenAllowedForURLs

func AutoOpenAllowedForURLs(ctx context.Context, s *testing.State)

AutoOpenAllowedForURLs tests the AutoOpenAllowedForURLs policy.

func AutoclickEnabled

func AutoclickEnabled(ctx context.Context, s *testing.State)

AutoclickEnabled tests the AutoclickEnabled policy.

func AutofillAddressEnabled

func AutofillAddressEnabled(ctx context.Context, s *testing.State)

func AutofillCreditCardEnabled

func AutofillCreditCardEnabled(ctx context.Context, s *testing.State)

func AutoplayAllowed

func AutoplayAllowed(ctx context.Context, s *testing.State)

AutoplayAllowed tests the AutoplayAllowed policy.

func BasicAuthOverHTTPEnabled

func BasicAuthOverHTTPEnabled(ctx context.Context, s *testing.State)

func BlockThirdPartyCookies

func BlockThirdPartyCookies(ctx context.Context, s *testing.State)

func BookmarkBarEnabled

func BookmarkBarEnabled(ctx context.Context, s *testing.State)

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

func ChromeOsLockOnIdleSuspend(ctx context.Context, s *testing.State)

ChromeOsLockOnIdleSuspend tests the ChromeOsLockOnIdleSuspend policy.

func ChromePolicyPageStatusTimestamps

func ChromePolicyPageStatusTimestamps(ctx context.Context, s *testing.State)

func CookiesAllowedForUrls

func CookiesAllowedForUrls(ctx context.Context, s *testing.State)

func CookiesBlockedForUrls

func CookiesBlockedForUrls(ctx context.Context, s *testing.State)

func DefaultGeolocationSetting

func DefaultGeolocationSetting(ctx context.Context, s *testing.State)

DefaultGeolocationSetting tests the DefaultGeolocationSetting policy.

func DefaultJavaScriptSetting

func DefaultJavaScriptSetting(ctx context.Context, s *testing.State)

func DefaultJavascriptJitSetting

func DefaultJavascriptJitSetting(ctx context.Context, s *testing.State)

func DefaultNotificationsSetting

func DefaultNotificationsSetting(ctx context.Context, s *testing.State)

DefaultNotificationsSetting tests the DefaultNotificationsSetting policy.

func DefaultSearchProviderEnabled

func DefaultSearchProviderEnabled(ctx context.Context, s *testing.State)

func DefaultSearchProviderKeyword

func DefaultSearchProviderKeyword(ctx context.Context, s *testing.State)

func DefaultSearchProviderName

func DefaultSearchProviderName(ctx context.Context, s *testing.State)

func DefaultSearchProviderSearchURL

func DefaultSearchProviderSearchURL(ctx context.Context, s *testing.State)

func DefaultSearchProviderSuggestURL

func DefaultSearchProviderSuggestURL(ctx context.Context, s *testing.State)

func DeletePrintJobHistoryAllowed

func DeletePrintJobHistoryAllowed(ctx context.Context, s *testing.State)

DeletePrintJobHistoryAllowed tests the DeletePrintJobHistoryAllowed policy.

func DeveloperToolsAvailability

func DeveloperToolsAvailability(ctx context.Context, s *testing.State)

func DeviceAdvancedBatteryChargeMode

func DeviceAdvancedBatteryChargeMode(ctx context.Context, s *testing.State)

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

func DeviceBatteryChargeMode(ctx context.Context, s *testing.State)

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 DeviceDockMacAddressSource

func DeviceDockMacAddressSource(ctx context.Context, s *testing.State)

func DeviceEphemeralUsersEnabled

func DeviceEphemeralUsersEnabled(ctx context.Context, s *testing.State)

func DeviceGuestModeEnabled

func DeviceGuestModeEnabled(ctx context.Context, s *testing.State)

func DeviceMinimumVersionNotifications

func DeviceMinimumVersionNotifications(ctx context.Context, s *testing.State)

func DeviceOffHours

func DeviceOffHours(ctx context.Context, s *testing.State)

func DevicePowerPeakShift

func DevicePowerPeakShift(ctx context.Context, s *testing.State)

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 DeviceShowUserNamesOnSignin

func DeviceShowUserNamesOnSignin(ctx context.Context, s *testing.State)

func DeviceWilcoDtcAllowedEnrolled

func DeviceWilcoDtcAllowedEnrolled(ctx context.Context, s *testing.State)

DeviceWilcoDtcAllowedEnrolled tests the DeviceWilcoDtcAllowed policy. TODO(b/189457904): rename to policy.DeviceWilcoDtcAllowed once stable and remote policy.DeviceWilcoDtcAllowed removed.

func DictationEnabled

func DictationEnabled(ctx context.Context, s *testing.State)

DictationEnabled tests the DictationEnabled policy.

func Disable3DAPIs

func Disable3DAPIs(ctx context.Context, s *testing.State)

func DisableScreenshotsCaptureMode

func DisableScreenshotsCaptureMode(ctx context.Context, s *testing.State)

func DisableScreenshotsExtension

func DisableScreenshotsExtension(ctx context.Context, s *testing.State)

func DisableScreenshotsHotkey

func DisableScreenshotsHotkey(ctx context.Context, s *testing.State)

func DownloadRestrictions

func DownloadRestrictions(ctx context.Context, s *testing.State)

func EditBookmarksEnabled

func EditBookmarksEnabled(ctx context.Context, s *testing.State)

EditBookmarksEnabled tests the EditBookmarksEnabaled policy for the enabled, disabled and unset cases.

func EnableA11yImageLabels

func EnableA11yImageLabels(ctx context.Context, s *testing.State)

func ExtensionAllowedTypes

func ExtensionAllowedTypes(ctx context.Context, s *testing.State)

ExtensionAllowedTypes tests the ExtensionAllowedTypes policy.

func ExtensionInstallEventLoggingEnabled

func ExtensionInstallEventLoggingEnabled(ctx context.Context, s *testing.State)

func ExtensionInstallForceList

func ExtensionInstallForceList(ctx context.Context, s *testing.State)

func ExtensionInstallPolicyCheck

func ExtensionInstallPolicyCheck(ctx context.Context, s *testing.State)

func FakeEnrollmentRealGAIA

func FakeEnrollmentRealGAIA(ctx context.Context, s *testing.State)

FakeEnrollmentRealGAIA tests that real GAIA account can be used along with fake enrollment.

func FileSystemWriteBlockedForUrls

func FileSystemWriteBlockedForUrls(ctx context.Context, s *testing.State)

FileSystemWriteBlockedForUrls tests the FileSystemWriteBlockedForUrls policy.

func ForceGoogleSafeSearch

func ForceGoogleSafeSearch(ctx context.Context, s *testing.State)

func ForceSafeSearch

func ForceSafeSearch(ctx context.Context, s *testing.State)

func ForceYouTubeRestrict

func ForceYouTubeRestrict(ctx context.Context, s *testing.State)

ForceYouTubeRestrict tests the behavior of the ForceYouTubeRestrict Enterprise policy.

func ForceYouTubeSafetyMode

func ForceYouTubeSafetyMode(ctx context.Context, s *testing.State)

func FullscreenAllowed

func FullscreenAllowed(ctx context.Context, s *testing.State)

FullscreenAllowed tests the FullscreenAllowed policy.

func HTTPSOnlyMode

func HTTPSOnlyMode(ctx context.Context, s *testing.State)

func HideWebStoreIcon

func HideWebStoreIcon(ctx context.Context, s *testing.State)

HideWebStoreIcon tests the HideWebStoreIcon policy.

func HistoryClustersVisible

func HistoryClustersVisible(ctx context.Context, s *testing.State)

func Homepage

func Homepage(ctx context.Context, s *testing.State)

func ImagesForURLCheck

func ImagesForURLCheck(ctx context.Context, s *testing.State)

func IncognitoModeAvailability

func IncognitoModeAvailability(ctx context.Context, s *testing.State)

func JavaScriptAllowedForUrls

func JavaScriptAllowedForUrls(ctx context.Context, s *testing.State)

func JavaScriptBlockedForUrls

func JavaScriptBlockedForUrls(ctx context.Context, s *testing.State)

func KeyboardDefaultToFunctionKeys

func KeyboardDefaultToFunctionKeys(ctx context.Context, s *testing.State)

KeyboardDefaultToFunctionKeys tests default function key action. Search+function keys should perform the alternate action.

func LacrosMainProfileLogin

func LacrosMainProfileLogin(ctx context.Context, s *testing.State)

func LacrosSecondaryProfilesAllowed

func LacrosSecondaryProfilesAllowed(ctx context.Context, s *testing.State)

func ManagedBookmarks

func ManagedBookmarks(ctx context.Context, s *testing.State)

func NewTabPageLocation

func NewTabPageLocation(ctx context.Context, s *testing.State)

func NotEnterpriseOwned

func NotEnterpriseOwned(ctx context.Context, s *testing.State)

func NotificationsAllowedForUrls

func NotificationsAllowedForUrls(ctx context.Context, s *testing.State)

NotificationsAllowedForUrls tests the NotificationsAllowedForUrls policy.

func NotificationsBlockedForUrls

func NotificationsBlockedForUrls(ctx context.Context, s *testing.State)

NotificationsBlockedForUrls tests the NotificationsBlockedForUrls policy.

func PasswordManagerEnabled

func PasswordManagerEnabled(ctx context.Context, s *testing.State)

PasswordManagerEnabled tests the PasswordManagerEnabled policy.

func PinUnlockMaximumLength

func PinUnlockMaximumLength(ctx context.Context, s *testing.State)

func PinUnlockMinimumLength

func PinUnlockMinimumLength(ctx context.Context, s *testing.State)

func PinUnlockWeakPinsAllowed

func PinUnlockWeakPinsAllowed(ctx context.Context, s *testing.State)

func PinnedLauncherApps

func PinnedLauncherApps(ctx context.Context, s *testing.State)

func PluginVMDataCollectionAllowed

func PluginVMDataCollectionAllowed(ctx context.Context, s *testing.State)

func PolicyRefreshRate

func PolicyRefreshRate(ctx context.Context, s *testing.State)

PolicyRefreshRate tests the PolicyRefreshRate policy.

func PopupsForURLCheck

func PopupsForURLCheck(ctx context.Context, s *testing.State)

func PreventDefaultProfileRemoval

func PreventDefaultProfileRemoval(ctx context.Context, s *testing.State)

func PrintPdfAsImageDefault

func PrintPdfAsImageDefault(ctx context.Context, s *testing.State)

PrintPdfAsImageDefault tests the PrintPdfAsImageDefault policy.

func Printers

func Printers(ctx context.Context, s *testing.State)

Printers tests the Printers policy.

func PrintersBulkAccessMode

func PrintersBulkAccessMode(ctx context.Context, s *testing.State)

func PrintingBackgroundGraphicsDefault

func PrintingBackgroundGraphicsDefault(ctx context.Context, s *testing.State)

PrintingBackgroundGraphicsDefault tests the PrintingBackgroundGraphicsDefault policy.

func PrintingEnabled

func PrintingEnabled(ctx context.Context, s *testing.State)

PrintingEnabled tests the PrintingEnabled policy.

func PromptForDownloadLocation

func PromptForDownloadLocation(ctx context.Context, s *testing.State)

PromptForDownloadLocation tests the PromptForDownloadLocation policy.

func QuickUnlockModeAllowlist

func QuickUnlockModeAllowlist(ctx context.Context, s *testing.State)

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:

  1. QuickUnlockModeAllowlist enabled will enable "setup" the auth method and using it for "quick_unlock", even if all other policies disable it.
  2. 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 ReadyErrorLog

func ReadyErrorLog(ctx context.Context, s *testing.State)

func ReportUploadFrequency

func ReportUploadFrequency(ctx context.Context, s *testing.State)

func RequiredClientCertificate

func RequiredClientCertificate(ctx context.Context, s *testing.State)

func SSLErrorOverrideAllowed

func SSLErrorOverrideAllowed(ctx context.Context, s *testing.State)

func SafeBrowsingExtendedReportingEnabled

func SafeBrowsingExtendedReportingEnabled(ctx context.Context, s *testing.State)

func SafeBrowsingProtectionLevel

func SafeBrowsingProtectionLevel(ctx context.Context, s *testing.State)

func SafeSitesFilterBehavior

func SafeSitesFilterBehavior(ctx context.Context, s *testing.State)

func SavingBrowserHistoryDisabled

func SavingBrowserHistoryDisabled(ctx context.Context, s *testing.State)

func ScreenBrightnessPercent

func ScreenBrightnessPercent(ctx context.Context, s *testing.State)

func ScreenCaptureAllowed

func ScreenCaptureAllowed(ctx context.Context, s *testing.State)

func ScrollToTextFragmentEnabled

func ScrollToTextFragmentEnabled(ctx context.Context, s *testing.State)

func SearchSuggestEnabled

func SearchSuggestEnabled(ctx context.Context, s *testing.State)

func SecondaryGoogleAccountSigninAllowed

func SecondaryGoogleAccountSigninAllowed(ctx context.Context, s *testing.State)

func SharedArrayBufferUnrestrictedAccessAllowed

func SharedArrayBufferUnrestrictedAccessAllowed(ctx context.Context, s *testing.State)

SharedArrayBufferUnrestrictedAccessAllowed tests the SharedArrayBufferUnrestrictedAccessAllowed policy.

func SharedArrayBufferUnrestrictedAccessAllowedAsh

func SharedArrayBufferUnrestrictedAccessAllowedAsh(ctx context.Context, s *testing.State)

SharedArrayBufferUnrestrictedAccessAllowedAsh tests the SharedArrayBufferUnrestrictedAccessAllowed policy in Ash.

func SharedManagedGuestSessionCleanup

func SharedManagedGuestSessionCleanup(ctx context.Context, s *testing.State)

SharedManagedGuestSessionCleanup tests that chrome.login.endSession performs its cleanup operations correctly. The following cleanups are tested:

  1. 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.
  2. Open windows: This is tested by opening a browser tab and checking that the tab is closed.
  3. 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.
  4. 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

func ShowAccessibilityOptionsInSystemTrayMenu(ctx context.Context, s *testing.State)

ShowAccessibilityOptionsInSystemTrayMenu tests the ShowAccessibilityOptionsInSystemTrayMenu policy.

func ShowFullUrlsInAddressBar

func ShowFullUrlsInAddressBar(ctx context.Context, s *testing.State)

func ShowHomeButton

func ShowHomeButton(ctx context.Context, s *testing.State)

func ShowLogoutButtonInTray

func ShowLogoutButtonInTray(ctx context.Context, s *testing.State)

func SpellCheckEnabled

func SpellCheckEnabled(ctx context.Context, s *testing.State)

func SpellCheckServiceEnabled

func SpellCheckServiceEnabled(ctx context.Context, s *testing.State)

func SpellcheckLanguage

func SpellcheckLanguage(ctx context.Context, s *testing.State)

func SystemProxySettings

func SystemProxySettings(ctx context.Context, s *testing.State)

func SystemTimezone

func SystemTimezone(ctx context.Context, s *testing.State)

func SystemTimezoneAutomaticDetection

func SystemTimezoneAutomaticDetection(ctx context.Context, s *testing.State)

func TabCaptureAllowedByOrigins

func TabCaptureAllowedByOrigins(ctx context.Context, s *testing.State)

TabCaptureAllowedByOrigins tests the namesake policy.

func TranslateEnabled

func TranslateEnabled(ctx context.Context, s *testing.State)

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 URLCheck

func URLCheck(ctx context.Context, s *testing.State)

func UpdateEnginePolicies

func UpdateEnginePolicies(ctx context.Context, s *testing.State)

func UserAvatarImage

func UserAvatarImage(ctx context.Context, s *testing.State)

func UserFeedbackAllowed

func UserFeedbackAllowed(ctx context.Context, s *testing.State)

func UserPrintersAllowed

func UserPrintersAllowed(ctx context.Context, s *testing.State)

func VideoCaptureAllowed

func VideoCaptureAllowed(ctx context.Context, s *testing.State)

VideoCaptureAllowed tests the VideoCaptureAllowed policy.

func VideoCaptureAllowedUrls

func VideoCaptureAllowedUrls(ctx context.Context, s *testing.State)

VideoCaptureAllowedUrls tests the VideoCaptureAllowedUrls policy.

func VirtualKeyboard

func VirtualKeyboard(ctx context.Context, s *testing.State)

VirtualKeyboard applies VK related policies and uses browser's address bar to bring the virtual keyboard up. Then asserts according to expectations.

func VirtualMachinesAllowed

func VirtualMachinesAllowed(ctx context.Context, s *testing.State)

func WallpaperImage

func WallpaperImage(ctx context.Context, s *testing.State)

WallpaperImage tests the WallpaperImage policy.

func WebAppInstallForceList

func WebAppInstallForceList(ctx context.Context, s *testing.State)

func WebauthnFactors

func WebauthnFactors(ctx context.Context, s *testing.State)

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:

  1. WebAuthnFactors enabled will enable "setup" the auth method and using it for "webauthn", even if all other policies disable it.
  2. 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.

func WindowCaptureAllowedByOrigins

func WindowCaptureAllowedByOrigins(ctx context.Context, s *testing.State)

WindowCaptureAllowedByOrigins tests the namesake policy.

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 (c *PolicyService) ContinueLogin(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

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 (*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

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 (c *PolicyService) StopChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL