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

Issue 247283007: Add ScopedStubEnterpriseInstallAttributes for tests to set test install attributes. (Closed)

Created:
6 years, 8 months ago by Steve Condie
Modified:
6 years, 7 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, merkulova
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add ScopedStubEnterpriseInstallAttributes for tests to set test install attributes. This change is motivated by the need to set the test install attributes before the browser policy connector is initialized for the first time. In particular, test class members may cause the policy connector to be initialized in their constructors, so we also need to set the install attributes in the constructor of a member. BUG=243341 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266094 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266771

Patch Set 1 #

Total comments: 2

Patch Set 2 : implement Mattias's suggestion #

Patch Set 3 : Fix memory leak #

Patch Set 4 : #

Patch Set 5 : rebasE #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -10 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector_browsertest.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc View 1 2 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Steve Condie
6 years, 8 months ago (2014-04-23 19:51:22 UTC) #1
Mattias Nissler (ping if slow)
The code here LGTM, but I've put a suggestions for your consideration. Feel free to ...
6 years, 8 months ago (2014-04-24 07:21:57 UTC) #2
Mattias Nissler (ping if slow)
Oh, one more thing: please update the BUG line to reference the bug that requires ...
6 years, 8 months ago (2014-04-24 07:25:00 UTC) #3
Nikita (slow)
cc:merkulova@
6 years, 8 months ago (2014-04-24 12:53:02 UTC) #4
Steve Condie
https://codereview.chromium.org/247283007/diff/1/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc File chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc (right): https://codereview.chromium.org/247283007/diff/1/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc#newcode47 chrome/browser/chromeos/policy/stub_enterprise_install_attributes.cc:47: BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting(attributes); On 2014/04/24 07:21:57, Mattias Nissler wrote: > Hm, ...
6 years, 8 months ago (2014-04-24 18:14:28 UTC) #5
Mattias Nissler (ping if slow)
LGTM
6 years, 8 months ago (2014-04-24 18:33:47 UTC) #6
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 8 months ago (2014-04-24 18:34:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stepco@chromium.org/247283007/20001
6 years, 8 months ago (2014-04-24 21:52:00 UTC) #8
commit-bot: I haz the power
Change committed as 266094
6 years, 8 months ago (2014-04-25 02:39:51 UTC) #9
Alexander Potapenko
On 2014/04/25 02:39:51, I haz the power (commit-bot) wrote: > Change committed as 266094 This ...
6 years, 8 months ago (2014-04-25 12:40:08 UTC) #10
Alexander Potapenko
A revert of this CL has been created in https://codereview.chromium.org/255873002/ by glider@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-25 12:41:07 UTC) #11
Steve Condie
Please take another look. I didn't realize that some of the tests never initialized the ...
6 years, 8 months ago (2014-04-25 20:38:58 UTC) #12
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 8 months ago (2014-04-25 20:42:49 UTC) #13
Steve Condie
The CQ bit was unchecked by stepco@chromium.org
6 years, 8 months ago (2014-04-25 20:42:49 UTC) #14
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 8 months ago (2014-04-25 20:43:30 UTC) #15
Steve Condie
The CQ bit was unchecked by stepco@chromium.org
6 years, 8 months ago (2014-04-25 20:43:30 UTC) #16
Mattias Nissler (ping if slow)
LGTM assuming you've verified that the leaks are no longer present with the new version.
6 years, 7 months ago (2014-04-28 11:37:06 UTC) #17
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 17:24:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stepco@chromium.org/247283007/60001
6 years, 7 months ago (2014-04-28 17:24:26 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 17:26:47 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on android_clang_dbg tryserver.chromium on linux_chromium_chromeos_clang_dbg tryserver.chromium on linux_chromium_clang_dbg ...
6 years, 7 months ago (2014-04-28 17:26:47 UTC) #21
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 17:33:14 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stepco@chromium.org/247283007/80001
6 years, 7 months ago (2014-04-28 17:33:45 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 20:26:00 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 7 months ago (2014-04-28 20:26:01 UTC) #25
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 20:43:12 UTC) #26
Steve Condie
The CQ bit was unchecked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 20:43:23 UTC) #27
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 21:27:04 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stepco@chromium.org/247283007/100001
6 years, 7 months ago (2014-04-28 21:27:23 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 22:06:00 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 22:06:00 UTC) #31
Steve Condie
The CQ bit was checked by stepco@chromium.org
6 years, 7 months ago (2014-04-28 23:52:39 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stepco@chromium.org/247283007/100001
6 years, 7 months ago (2014-04-28 23:55:44 UTC) #33
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 07:39:37 UTC) #34
Message was sent while issue was closed.
Change committed as 266771

Powered by Google App Engine
This is Rietveld 408576698