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

Issue 214047: Allow an entire InProcessBrowserTest subclass to configure the host resolver ... (Closed)

Created:
11 years, 3 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
CC:
jcampan, chromium-reviews_googlegroups.com, ncarter (slow), idana
Visibility:
Public.

Description

Add SetUpTestFixtureTest/TearDownTestFixtureTest methods to InProcessBrowserTest that let tests do what is normally done by overriding SetUp/TearDown methods. This special method is needed because of the way SetUp winds up at the bottom of the stack that invokes your test fixture methods. Make the LiveBookmarksSyncTest class allow direct lookup for google.com domain as part of setup, which these tests need to access GAIA and sync servers.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -14 lines) Patch
M chrome/test/in_process_browser_test.h View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/in_process_browser_test.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_bookmarks_sync_test.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_bookmarks_sync_test.cc View 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/test/live_sync/two_client_live_bookmarks_sync_test.cc View 1 chunk +14 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tim (not reviewing)
11 years, 3 months ago (2009-09-22 00:14:13 UTC) #1
Paweł Hajdan Jr.
NACK. I don't like making the method virtual, and overriding it. Please override the configuration ...
11 years, 3 months ago (2009-09-22 00:20:15 UTC) #2
tim (not reviewing)
On 2009/09/22 00:20:15, Paweł Hajdan Jr. wrote: > NACK. I don't like making the method ...
11 years, 3 months ago (2009-09-22 00:22:08 UTC) #3
tim (not reviewing)
On 2009/09/22 00:22:08, timsteele wrote: > On 2009/09/22 00:20:15, Paweł Hajdan Jr. wrote: > > ...
11 years, 3 months ago (2009-09-22 00:44:57 UTC) #4
tim (not reviewing)
I spoke with Pawel over IM and re-implemented with proposed changes. Please have another look.
11 years, 3 months ago (2009-09-22 20:59:11 UTC) #5
chron_chromium.org
lgtm http://codereview.chromium.org/214047/diff/7001/7005 File chrome/test/live_sync/live_bookmarks_sync_test.cc (right): http://codereview.chromium.org/214047/diff/7001/7005#newcode87 Line 87: new net::RuleBasedHostResolverProc(host_resolver()); +2 indent http://codereview.chromium.org/214047/diff/7001/7005#newcode88 Line 88: ...
11 years, 3 months ago (2009-09-22 23:25:06 UTC) #6
Paweł Hajdan Jr.
+jcampan for in_process_* stuff http://codereview.chromium.org/214047/diff/7001/7002 File chrome/test/in_process_browser_test.h (right): http://codereview.chromium.org/214047/diff/7001/7002#newcode75 Line 75: virtual void SetUpInProcessBrowserTestFixture() {} ...
11 years, 3 months ago (2009-09-22 23:26:22 UTC) #7
tim (not reviewing)
http://codereview.chromium.org/214047/diff/7001/7002 File chrome/test/in_process_browser_test.h (right): http://codereview.chromium.org/214047/diff/7001/7002#newcode75 Line 75: virtual void SetUpInProcessBrowserTestFixture() {} On 2009/09/22 23:26:22, Paweł ...
11 years, 3 months ago (2009-09-22 23:37:16 UTC) #8
Paweł Hajdan Jr.
LGTM
11 years, 3 months ago (2009-09-22 23:39:41 UTC) #9
jcampan
11 years, 2 months ago (2009-09-23 16:43:47 UTC) #10
LGTM (in_process_test part)

Powered by Google App Engine
This is Rietveld 408576698