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

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed)

Created:
9 years, 10 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, Nico
CC:
chromium-reviews, cbentzel+watch_chromium.org, Raghu Simha, idana, James Hawkins, ncarter (slow), darin-cc_chromium.org, Paweł Hajdan Jr., Ilya Sherman, tim (not reviewing), dhollowa
Visibility:
Public.

Description

Even more test cleanup. Some fixes to non-test code that's regressed. BUG=none TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75014

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -1039 lines) Patch
D chrome/browser/autofill/billing_address.h View 1 chunk +0 lines, -54 lines 1 comment Download
D chrome/browser/autofill/billing_address_unittest.cc View 1 chunk +0 lines, -787 lines 0 comments Download
M chrome/browser/content_settings/content_settings_base_provider.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/content_settings_base_provider.cc View 1 chunk +16 lines, -0 lines 3 comments Download
M chrome/browser/geolocation/arbitrator_dependency_factories_for_test.h View 1 chunk +4 lines, -9 lines 0 comments Download
A chrome/browser/geolocation/arbitrator_dependency_factories_for_test.cc View 1 chunk +30 lines, -0 lines 1 comment Download
M chrome/browser/net/gaia/token_service_unittest.h View 3 chunks +8 lines, -14 lines 0 comments Download
M chrome/browser/net/gaia/token_service_unittest.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.h View 3 chunks +12 lines, -10 lines 0 comments Download
A chrome/browser/notifications/notification_test_util.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/read_node_mock.h View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/sync/engine/read_node_mock.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 9 chunks +9 lines, -4 lines 2 comments Download
M chrome/test/bookmark_load_observer.h View 3 chunks +4 lines, -6 lines 0 comments Download
A chrome/test/bookmark_load_observer.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/test/sync/test_http_bridge_factory.h View 1 chunk +9 lines, -20 lines 2 comments Download
A chrome/test/sync/test_http_bridge_factory.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/testing_browser_process.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/execute_command.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/test/webdriver/commands/execute_command.cc View 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/navigate_commands.h View 3 chunks +12 lines, -15 lines 0 comments Download
M chrome/test/webdriver/commands/navigate_commands.cc View 4 chunks +42 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/session_with_id.h View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/test/webdriver/commands/session_with_id.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/source_command.h View 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/test/webdriver/commands/source_command.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/speed_command.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/test/webdriver/commands/speed_command.cc View 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/title_command.h View 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/test/webdriver/commands/title_command.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/webelement_commands.h View 4 chunks +11 lines, -15 lines 0 comments Download
M chrome/test/webdriver/commands/webelement_commands.cc View 3 chunks +38 lines, -0 lines 0 comments Download
M jingle/jingle.gyp View 2 chunks +2 lines, -1 line 0 comments Download
M jingle/notifier/listener/mediator_thread_mock.h View 1 chunk +21 lines, -59 lines 1 comment Download
A jingle/notifier/listener/mediator_thread_mock.cc View 1 chunk +79 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_resource.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Elliot Glaysher
http://codereview.chromium.org/6523032/diff/1/chrome/browser/autofill/billing_address.h File chrome/browser/autofill/billing_address.h (left): http://codereview.chromium.org/6523032/diff/1/chrome/browser/autofill/billing_address.h#oldcode6 chrome/browser/autofill/billing_address.h:6: #define CHROME_BROWSER_AUTOFILL_BILLING_ADDRESS_H_ Checked with David. This just was never ...
9 years, 10 months ago (2011-02-15 21:16:41 UTC) #1
Nico
LG couple nits http://codereview.chromium.org/6523032/diff/1/chrome/browser/content_settings/content_settings_base_provider.cc File chrome/browser/content_settings/content_settings_base_provider.cc (right): http://codereview.chromium.org/6523032/diff/1/chrome/browser/content_settings/content_settings_base_provider.cc#newcode37 chrome/browser/content_settings/content_settings_base_provider.cc:37: content_settings_for_resources(rhs.content_settings_for_resources) { this (can't rely on ...
9 years, 10 months ago (2011-02-15 21:25:37 UTC) #2
Lei Zhang
LGTM with one minor comment below.
9 years, 10 months ago (2011-02-15 21:28:41 UTC) #3
Lei Zhang
http://codereview.chromium.org/6523032/diff/1/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/6523032/diff/1/chrome/chrome_tests.gypi#newcode95 chrome/chrome_tests.gypi:95: 'browser/sync/engine/read_node_mock.h', Shouldn't these 2 be in sync_unit_tests? I don't ...
9 years, 10 months ago (2011-02-15 21:33:44 UTC) #4
Elliot Glaysher
9 years, 10 months ago (2011-02-15 22:09:51 UTC) #5
http://codereview.chromium.org/6523032/diff/1/chrome/browser/content_settings...
File chrome/browser/content_settings/content_settings_base_provider.cc (right):

http://codereview.chromium.org/6523032/diff/1/chrome/browser/content_settings...
chrome/browser/content_settings/content_settings_base_provider.cc:37:
content_settings_for_resources(rhs.content_settings_for_resources) {
On 2011/02/15 21:25:37, Nico wrote:
> this (can't rely on implicit copy constructors) is a bit of a bummer

map of string to map of pair of enum and string to arbitrary array?

We need to go deeper.

http://codereview.chromium.org/6523032/diff/1/chrome/chrome_tests.gypi
File chrome/chrome_tests.gypi (right):

http://codereview.chromium.org/6523032/diff/1/chrome/chrome_tests.gypi#newcode95
chrome/chrome_tests.gypi:95: 'browser/sync/engine/read_node_mock.h',
On 2011/02/15 21:33:44, Lei Zhang wrote:
> Shouldn't these 2 be in sync_unit_tests? I don't think anyone else uses them.

Was confused. sync_unit_tests *doesn't* use them while unit_tests does. Fixed by
moving to unit_tests instead.

http://codereview.chromium.org/6523032/diff/1/chrome/test/sync/test_http_brid...
File chrome/test/sync/test_http_bridge_factory.h (right):

http://codereview.chromium.org/6523032/diff/1/chrome/test/sync/test_http_brid...
chrome/test/sync/test_http_bridge_factory.h:45: virtual const std::string
GetResponseHeaderValue(const std::string &) const;
On 2011/02/15 21:25:37, Nico wrote:
> i guess this should be std::string&?

Can't; this function is defined by the protobufs and I'm not touching those.
Also, the implementation doesn't return a reference to a real string, instead
copying.

Powered by Google App Engine
This is Rietveld 408576698