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

Issue 962393002: Add TestWebContentsFactory to content/public/test (Closed)

Created:
5 years, 9 months ago by Devlin
Modified:
5 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, jam, kalyank, sadrul, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TestWebContentsFactory to content/public/test TestWebContentsFactory is a class that can create WebContents for unittests, but can be created on the stack. This gives it the advantage of being able to be used in tests that are already inheriting from something other than RenderViewTestHarness. Committed: https://crrev.com/c351e82b9e7a5ca9cfe9135db88f5afa035f64b7 Cr-Commit-Position: refs/heads/master@{#318740}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Scott's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -73 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc View 2 chunks +2 lines, -73 lines 0 comments Download
M content/content_tests.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A content/public/test/test_web_contents_factory.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A content/test/test_web_contents_factory.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
M ui/aura/env.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/env.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Devlin
Scott, mind taking a look?
5 years, 9 months ago (2015-02-27 23:15:50 UTC) #2
sky
https://codereview.chromium.org/962393002/diff/1/content/public/test/test_web_contents_factory.h File content/public/test/test_web_contents_factory.h (right): https://codereview.chromium.org/962393002/diff/1/content/public/test/test_web_contents_factory.h#newcode33 content/public/test/test_web_contents_factory.h:33: // Creates a new WebContents with the given |context|, ...
5 years, 9 months ago (2015-02-28 17:30:46 UTC) #3
Devlin
https://codereview.chromium.org/962393002/diff/1/content/public/test/test_web_contents_factory.h File content/public/test/test_web_contents_factory.h (right): https://codereview.chromium.org/962393002/diff/1/content/public/test/test_web_contents_factory.h#newcode33 content/public/test/test_web_contents_factory.h:33: // Creates a new WebContents with the given |context|, ...
5 years, 9 months ago (2015-03-02 17:27:12 UTC) #5
sky
LGTM
5 years, 9 months ago (2015-03-02 18:12:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/962393002/40001
5 years, 9 months ago (2015-03-02 18:16:09 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 9 months ago (2015-03-02 19:57:42 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 19:59:13 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c351e82b9e7a5ca9cfe9135db88f5afa035f64b7
Cr-Commit-Position: refs/heads/master@{#318740}

Powered by Google App Engine
This is Rietveld 408576698