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

Issue 402066: Moved a whole pile of unittests over to CocoaTest. (Closed)

Created:
11 years, 1 month ago by dmac
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Paul Godavari, ben+cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Moved a whole pile of unittests over to CocoaTest. AboutIPC.xib - Connected up controller to its window and the window delegate to the controller. BUG=26484, 26484 TEST=See repro steps in bugs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32551

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 27

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -1248 lines) Patch
M chrome/app/nibs/AboutIPC.xib View 31 chunks +73 lines, -613 lines 0 comments Download
M chrome/browser/app_controller_mac.h View 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 3 4 5 6 3 chunks +32 lines, -20 lines 0 comments Download
M chrome/browser/cocoa/about_ipc_controller_unittest.mm View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/about_window_controller.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/about_window_controller.mm View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/cocoa/about_window_controller_unittest.mm View 1 2 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm View 1 2 3 4 5 6 8 chunks +40 lines, -61 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_unittest.mm View 1 2 17 chunks +31 lines, -45 lines 0 comments Download
MM chrome/browser/cocoa/autocomplete_text_field_unittest_helper.mm View 1 chunk +11 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/background_gradient_view_unittest.mm View 1 2 1 chunk +8 lines, -14 lines 0 comments Download
M chrome/browser/cocoa/background_tile_view_unittest.mm View 1 2 1 chunk +10 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/base_view_unittest.mm View 1 2 1 chunk +6 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/blocked_popup_container_controller_unittest.mm View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_controller_unittest.mm View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_toolbar_view_unittest.mm View 1 2 1 chunk +8 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bar_view_unittest.mm View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/bookmark_button_cell_unittest.mm View 1 2 3 4 5 6 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/cocoa/bookmark_name_folder_controller_unittest.mm View 5 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa_unittest.mm View 1 2 3 4 5 6 5 chunks +20 lines, -26 lines 0 comments Download
M chrome/browser/cocoa/clear_browsing_data_controller_unittest.mm View 1 2 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/clickhold_button_cell_unittest.mm View 1 2 1 chunk +6 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/download_shelf_view_unittest.mm View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/event_utils_unittest.mm View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/cocoa/find_bar_cocoa_controller_unittest.mm View 1 2 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/find_bar_view_unittest.mm View 1 2 3 chunks +13 lines, -23 lines 0 comments Download
M chrome/browser/cocoa/find_pasteboard_unittest.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/cocoa/focus_tracker_unittest.mm View 1 2 3 4 5 6 1 chunk +36 lines, -38 lines 0 comments Download
M chrome/browser/cocoa/fullscreen_window_unittest.mm View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/hyperlink_button_cell_unittest.mm View 1 2 3 4 5 6 1 chunk +20 lines, -30 lines 0 comments Download
M chrome/browser/cocoa/infobar_container_controller_unittest.mm View 1 2 3 chunks +16 lines, -19 lines 0 comments Download
M chrome/browser/cocoa/infobar_controller_unittest.mm View 1 2 4 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/infobar_text_field_unittest.mm View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller_unittest.mm View 1 2 2 chunks +24 lines, -50 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac_unittest.mm View 1 2 4 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/nswindow_local_state_unittest.mm View 1 2 1 chunk +10 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/page_info_window_controller_unittest.mm View 1 2 2 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller_unittest.mm View 2 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/styled_text_field_cell_unittest.mm View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/cocoa/tab_controller_unittest.mm View 1 2 8 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_view_unittest.mm View 1 2 1 chunk +7 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/tab_view_unittest.mm View 1 2 1 chunk +6 lines, -12 lines 0 comments Download
M chrome/browser/cocoa/throbber_view_unittest.mm View 1 2 1 chunk +5 lines, -18 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller_unittest.mm View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/toolbar_view_unittest.mm View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/web_drop_target_unittest.mm View 1 2 3 chunks +7 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
dmac
11 years, 1 month ago (2009-11-18 22:18:07 UTC) #1
rohitrao (ping after 24h)
Made it from A-H. More to come. http://codereview.chromium.org/402066/diff/1089/45 File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/402066/diff/1089/45#newcode696 Line 696: prefsController_ ...
11 years, 1 month ago (2009-11-19 06:30:46 UTC) #2
dmac
New version up. http://codereview.chromium.org/402066/diff/1089/45 File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/402066/diff/1089/45#newcode696 Line 696: prefsController_ = nil; On 2009/11/19 ...
11 years, 1 month ago (2009-11-19 18:35:28 UTC) #3
rohitrao (ping after 24h)
11 years, 1 month ago (2009-11-19 21:10:22 UTC) #4
LGTM

http://codereview.chromium.org/402066/diff/1089/50
File chrome/browser/cocoa/page_info_window_controller_unittest.mm (left):

http://codereview.chromium.org/402066/diff/1089/50#oldcode12
Line 12: #include "testing/gtest/include/gtest/gtest.h"
We're not particularly consistent about whether or not to include gtest.h and
platform_test.h.  Is there a "correct" answer?

http://codereview.chromium.org/402066/diff/1089/92
File chrome/browser/cocoa/preferences_window_controller_unittest.mm (right):

http://codereview.chromium.org/402066/diff/1089/92#newcode75
Line 75: pref_controller_ = nil;
Ah, I see.  This line prevents us from doing a second close in TearDown().

Powered by Google App Engine
This is Rietveld 408576698