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

Issue 18432: Factor out the test web contents from the WebContents unit test so that it ca... (Closed)

Created:
11 years, 11 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Factor out the test web contents from the WebContents unit test so that it can be used by other tests. Properly hook up the MockRenderProcessHost so it gets created when initialized by SiteInstances through a factory object. Fix other bugs with the test harness I found when I switched all the WebContents test over to using it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8416

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -337 lines) Patch
M chrome/browser/renderer_host/mock_render_process_host.h View 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/test_render_view_host.h View 3 chunks +40 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/test_render_view_host.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/site_instance.h View 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/site_instance.cc View 1 chunk +8 lines, -2 lines 0 comments Download
A chrome/browser/tab_contents/test_web_contents.h View 3 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/tab_contents/test_web_contents.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_unittest.cc View 37 chunks +230 lines, -311 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
brettw
11 years, 11 months ago (2009-01-20 23:15:10 UTC) #1
brettw
There is a new snap up. I forgot to add test_web_contents.* to subversion.
11 years, 11 months ago (2009-01-20 23:53:15 UTC) #2
jcampan
11 years, 11 months ago (2009-01-21 00:30:58 UTC) #3
LGTM
some nits

http://codereview.chromium.org/18432/diff/40/45
File chrome/browser/renderer_host/mock_render_process_host.h (right):

http://codereview.chromium.org/18432/diff/40/45#newcode59
Line 59: }
DISALLOW_COPY_...

http://codereview.chromium.org/18432/diff/40/47
File chrome/browser/renderer_host/test_render_view_host.h (right):

http://codereview.chromium.org/18432/diff/40/47#newcode11
Line 11: #include "chrome/browser/tab_contents/test_web_contents.h"
Do you need that include?

http://codereview.chromium.org/18432/diff/40/47#newcode162
Line 162: : rph_factory_(),
Do you need that line?

http://codereview.chromium.org/18432/diff/40/50
File chrome/browser/tab_contents/test_web_contents.cc (right):

http://codereview.chromium.org/18432/diff/40/50#newcode6
Line 6: #include "chrome/browser/tab_contents/test_web_contents.h"
Shouldn't be the 1st include?

http://codereview.chromium.org/18432/diff/40/42
File chrome/browser/tab_contents/web_contents_unittest.cc (right):

http://codereview.chromium.org/18432/diff/40/42#newcode194
Line 194: // is not supposed to overwrite an profile if it's already created.
typo "an profile"

http://codereview.chromium.org/18432/diff/40/42#newcode889
Line 889: /* FIXME(brettw)
Should you file a bug so we don't forget

Powered by Google App Engine
This is Rietveld 408576698