summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/device_policy_cache_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move test_browser_thread.h from content\test to content\public\test. This ↵jam@chromium.org2012-06-041-1/+1
| | | | | | | | | | way we can enforce that internal content headers don't leak to embedders. BUG=98716 TBR=phajdan.jr Review URL: https://chromiumcodereview.appspot.com/10500016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140254 0039d316-1c4b-4281-b951-d872f2087c98
* Fix device policy update notifications.mnissler@chromium.org2012-04-031-13/+49
| | | | | | | | | | | | | Only call SetFetchingDone() (which fires observers) once the policy store/reload cycle completes. BUG=chromium-os:28804 TEST=Change device policy configuration. Hit reload on chrome://policy. Make sure the first reload results in the page being updated. Review URL: http://codereview.chromium.org/9963063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130377 0039d316-1c4b-4281-b951-d872f2087c98
* Fix infinite refresh of device policy when the TPM gets out of sync with the ↵joaodasilva@chromium.org2012-03-051-3/+3
| | | | | | | | | | | | stateful partition. BUG=chromium-os:27251 TEST=Enroll a device. Flip the dev switch back and forth. The device should stop issuing device policy fetches every second. Review URL: http://codereview.chromium.org/9599009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124966 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for kiosk mode on the client. Make sure the settings are written ↵pastarmovj@chromium.org2012-02-241-1/+4
| | | | | | | | | | | | | | in the lockbox. Propagates the registration mode through the policy subsystem and lock it down in the lockbox. Provides interface to query the values using the EnterpriseInstallAttributes class. BUG=chromium-os:26246 TEST=unit_tests: *Enterprise*,*Policy* Review URL: https://chromiumcodereview.appspot.com/9403010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123471 0039d316-1c4b-4281-b951-d872f2087c98
* Removed ConfigurationPolicyType and extended PolicyMap.joaodasilva@chromium.org2012-01-221-31/+17
| | | | | | | | | | | | | | | | | | PolicyMap was strongly coupled to specific Chrome policies, through the ConfigurationPolicyType. That enum has been removed and replaced by strings. Also introduced new PolicyMap-related enums: PolicyScope and PolicyLevel. Started removing mandatory/recommended policy_maps around. Currently there are still mandatory/recommended providers, but that'll go away after this. TBR=jhawkins@chromium.org BUG=108993 TEST=All works as before Review URL: https://chromiumcodereview.appspot.com/9111022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118648 0039d316-1c4b-4281-b951-d872f2087c98
* Don't alias namespace enterprise_management to namespace em in headers.mnissler@chromium.org2012-01-021-1/+3
| | | | | | | | | | | | Mechanical changes only. BUG=None TEST=Compiles and passes tests. Review URL: http://codereview.chromium.org/9068002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116104 0039d316-1c4b-4281-b951-d872f2087c98
* PART 5 Of the signed settings refactoring. List of all changes follow beneath:pastarmovj@chromium.org2011-12-021-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read from the bottom to the top: * Add new unit tests to cover what was removed before. * Rename SignedSettingsTempStorage to SignedSettingsCache. * Revitalize existing tests for SignedSettings[Helper]. * Add the needed infrastucture to support enrollment as well. * Remove the second cache in OwnershipService it is obsolete. * Remove the prop ops completely. * Remove direct prop op from the proxy stuff. * Serialize policy changes correctly and map side effects of policies. Mainly make sure we never serialize dirty policy. Don't reload if policy is serialized fine. Clear local state registration. * Clean up redundand SS ops and make proper callbacks for the helper Move the temp storage finalization to where it belongs. * Make the temp storage be the cache and use policy ops. * Make DeviceSettingsProvider work with the protobuf blob directly. * Merged DeviceSettingsProvider and UserCrosSettingsTrust. * Rename UserCrosSettingsProvider to DeviceSettingsProvider. * Extract the SignedSettingsMigrationHelper in its own file. BUG=chromium-os:14054 TEST=unit_tests:SignedSettings*,*CrosSettings*,suite_Smoke:login_OwnershipApi Review URL: http://codereview.chromium.org/8727037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112713 0039d316-1c4b-4281-b951-d872f2087c98
* Rename network configuration policy as per Zhanyong's proposal.mnissler@chromium.org2011-10-251-2/+2
| | | | | | | | | BUG=None TEST=compiles and passes tests. Review URL: http://codereview.chromium.org/8382005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107124 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce user and device policy for shipping network configuration.mnissler@chromium.org2011-10-061-18/+35
| | | | | | | | | | BUG=19411 TEST=None Review URL: http://codereview.chromium.org/8144005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104310 0039d316-1c4b-4281-b951-d872f2087c98
* Cosmetic cleanups in chrome/browser/policy/joaodasilva@chromium.org2011-09-211-1/+0
| | | | | | | | | | BUG=None TEST=Everything works as before, compiles cleanly Review URL: http://codereview.chromium.org/7941008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102100 0039d316-1c4b-4281-b951-d872f2087c98
* Switch ChromeTestSuite to the same convention as ContentTestSuite:phajdan.jr@chromium.org2011-08-271-2/+1
| | | | | | | | | | | | | | | | | the test suite implicitly provides global resources for each test, but they're re-initialized between each test. The performance overhead is negligible. We need that to continue moving tests from unit_tests to content_unittests. Because of shared test fixtures the test suites need to be compatible. BUG=90443 Review URL: http://codereview.chromium.org/7744039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98526 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Use a fresh TestingBrowserProcess for each test, part #6phajdan.jr@chromium.org2011-08-121-1/+2
| | | | | | | | | | | | | For a detailed description see part #1, http://codereview.chromium.org/6478005/ This CL fixes the bug fully on Linux. More platforms will follow. BUG=61062 TEST=unit_tests, possibly more Review URL: http://codereview.chromium.org/7628006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96638 0039d316-1c4b-4281-b951-d872f2087c98
* base: Remove using declaration of FundamentalValue as it's no longer necessary.tfarina@chromium.org2011-08-111-5/+5
| | | | | | | | | | | BUG=None TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7619006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96400 0039d316-1c4b-4281-b951-d872f2087c98
* Tests for cloud policy UMA metrics.joaodasilva@chromium.org2011-07-211-35/+3
| | | | | | | | | | BUG=chromium-os:14002 TEST=unit_tests:EnterpriseMetricsTest,browser_tests:EnterpriseMetricsBrowserTest (chromeos only) Review URL: http://codereview.chromium.org/7345010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93383 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate data storage and notifications in the cloud policy subsystemgfeher@chromium.org2011-07-091-3/+4
| | | | | | | | | | | Get rid of identity strategies and create a central in-memory data store and notification hub, which is more simple. It's called CloudPolicyDataStore. BUG=chromium-os:17309 TEST=user and device policies work exactly as before Review URL: http://codereview.chromium.org/7298012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91957 0039d316-1c4b-4281-b951-d872f2087c98
* Split the policy refresh rate preference into user- and device-policy ↵sfeuz@chromium.org2011-06-061-6/+12
| | | | | | | | | | | | | | refresh rate. This is an effort towards removing dependencies of the ProfilePolicyConnector on Profile. BUG=none TEST=Verify that user- and device-refresh rate are set correctly when specified by policy. Review URL: http://codereview.chromium.org/7014036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88003 0039d316-1c4b-4281-b951-d872f2087c98
* Decode the DeviceProxySettings on the DevicePolicyCache.joaodasilva@chromium.org2011-04-181-10/+66
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6876002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81943 0039d316-1c4b-4281-b951-d872f2087c98
* Plug memory leak in device_policy_cache_unittest.ccmnissler@chromium.org2011-04-181-2/+4
| | | | | | | | | BUG=None TEST=No DevicePolicyCacheTest-related valgrind reports Review URL: http://codereview.chromium.org/6878014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81938 0039d316-1c4b-4281-b951-d872f2087c98
* Add immutable settings checks when handling policy.mnissler@chromium.org2011-04-181-36/+100
| | | | | | | | | | | | | | When receiving device policy from the server, make sure that the device is an enterprise device and the policy information is meant for the user who registered the device. While at it, move all the enterprise-related install attributes checking to a helper. BUG=chromium-os:14197 TEST=unit tests Review URL: http://codereview.chromium.org/6869042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81932 0039d316-1c4b-4281-b951-d872f2087c98
* Provide backend methods for device enrollment UIjkummerow@chromium.org2011-04-111-1/+4
| | | | | | | | | BUG=chromium-os:13277 TEST=Existing unit tests Review URL: http://codereview.chromium.org/6794022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81088 0039d316-1c4b-4281-b951-d872f2087c98
* Send policy blobs to session_managerjkummerow@chromium.org2011-03-291-0/+142
And also read policy back from session_manager into CloudPolicyCache, but there are no consumers of those values yet. BUG=chromium-os:11258 TEST=UserPolicyCacheTest.*; DevicePolicyCacheTest.* Review URL: http://codereview.chromium.org/6705031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79677 0039d316-1c4b-4281-b951-d872f2087c98