Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Issue 2534983002: Re-enabled UserCloudPolicyManagerChromeOS unit tests (Closed)

Created:
4 years ago by Andrew T Wilson (Slow)
Modified:
4 years ago
Reviewers:
pmarko, emaxx
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-enabled UserCloudPolicyManagerChromeOS unit tests Changed test code to no longer maintain a parallel list of default policies, but instead to use the auto-generated list for easier maintenance. BUG=666122 Committed: https://crrev.com/786755daa476c2374428a8950377f58f4d709349 Cr-Commit-Position: refs/heads/master@{#435257}

Patch Set 1 #

Total comments: 16

Patch Set 2 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -56 lines) Patch
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 1 7 chunks +12 lines, -28 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_browsertest.cc View 1 3 chunks +24 lines, -28 lines 0 comments Download
A chrome/browser/policy/cloud/cloud_policy_test_utils.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/cloud_policy_test_utils.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
pmarko
https://codereview.chromium.org/2534983002/diff/1/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc File chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc (right): https://codereview.chromium.org/2534983002/diff/1/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc#newcode123 chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc:123: policy_fetch_timeout_.Stop(); nit: I think stopping the timer would not ...
4 years ago (2016-11-29 14:03:34 UTC) #9
emaxx
I'm fine with this change, assuming that the GeneratePolicySource.SetEnterpriseDefaults unit test is enough for testing ...
4 years ago (2016-11-29 16:21:16 UTC) #10
Andrew T Wilson (Slow)
Addressed review comments and also added a test to explicitly test that enterprise-default policies are ...
4 years ago (2016-11-30 10:02:34 UTC) #11
pmarko
Looks good!
4 years ago (2016-11-30 10:56:26 UTC) #12
Andrew T Wilson (Slow)
On 2016/11/30 10:56:26, pmarko wrote: > Looks good! You actually have to put "LGTM" somewhere ...
4 years ago (2016-11-30 13:25:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534983002/20001
4 years ago (2016-11-30 13:26:05 UTC) #16
pmarko
On 2016/11/30 13:25:44, Andrew T Wilson (Slow) wrote: > On 2016/11/30 10:56:26, pmarko wrote: > ...
4 years ago (2016-11-30 13:41:00 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-30 14:37:06 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-30 14:40:29 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/786755daa476c2374428a8950377f58f4d709349
Cr-Commit-Position: refs/heads/master@{#435257}

Powered by Google App Engine
This is Rietveld 408576698