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

Issue 23532033: policy: Add ostream operator overloads to policy types for testing. (Closed)

Created:
7 years, 3 months ago by dconnelly
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

policy: Add ostream operator overloads to policy types for testing. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221472

Patch Set 1 #

Total comments: 4

Patch Set 2 : generate json #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -51 lines) Patch
M chrome/browser/policy/cloud/cloud_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_manager_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/policy/policy_test_utils.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_test_utils.cc View 1 1 chunk +118 lines, -0 lines 0 comments Download
M chrome/browser/policy/test_utils.h View 1 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/policy/test_utils.cc View 1 1 chunk +0 lines, -28 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dconnelly
It isn't pretty, but it's readable. Looking for suggestions. For example: PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa): {bool: PolicyMap::Entry(1, ...
7 years, 3 months ago (2013-09-03 13:37:38 UTC) #1
Mattias Nissler (ping if slow)
Maybe it'd make sense to instead generate proper JSON? That way, we have a format ...
7 years, 3 months ago (2013-09-03 15:31:50 UTC) #2
dconnelly
Now generates json. Example: { "POLICY_DOMAIN_CHROME/": { "DictionaryPolicy": { "level": POLICY_LEVEL_MANDATORY, "scope": POLICY_SCOPE_MACHINE, "value": { ...
7 years, 3 months ago (2013-09-04 17:43:02 UTC) #3
Mattias Nissler (ping if slow)
I think this is good enough now, so LGTM. It might be more flexible to ...
7 years, 3 months ago (2013-09-05 12:29:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dconnelly@chromium.org/23532033/6001
7 years, 3 months ago (2013-09-05 12:31:32 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 18:35:30 UTC) #6
Message was sent while issue was closed.
Change committed as 221472

Powered by Google App Engine
This is Rietveld 408576698