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

Issue 1669793002: mac_views_browser: fixed interactive_ui_tests compilation. (Closed)

Created:
4 years, 10 months ago by kirr
Modified:
4 years, 10 months ago
Reviewers:
tapted, themblsha
CC:
chromium-reviews, tfarina, dcheng, Elly Fong-Jones
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac_views_browser: fixed interactive_ui_tests compilation. Splitting interactive_test_utils_mac.mm to mac specific part - interactive_test_utils_mac.mm and cocoa-views part - interactive_test_utils_cocoa.mm. Splitting interactive_test_utils_views.cc to interactive_test_utils_common_views.cc that can be used in mac tests and interactive_test_utils_views.cc that used only in toolkit-views tests. Disabled 3 tests files that are not ready for mac_views. BUG=575036

Patch Set 1 #

Total comments: 27

Patch Set 2 : Review fixes #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -173 lines) Patch
M chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 5 chunks +23 lines, -3 lines 2 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +18 lines, -0 lines 2 comments Download
M chrome/test/base/interactive_test_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
A + chrome/test/base/interactive_test_utils_cocoa.mm View 1 3 chunks +1 line, -34 lines 0 comments Download
A chrome/test/base/interactive_test_utils_common_views.cc View 1 1 chunk +40 lines, -0 lines 2 comments Download
M chrome/test/base/interactive_test_utils_mac.mm View 1 chunk +0 lines, -82 lines 0 comments Download
M chrome/test/base/interactive_test_utils_views.cc View 1 2 chunks +4 lines, -33 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
kirr
4 years, 10 months ago (2016-02-04 13:08:21 UTC) #2
tapted
Thanks! This looks pretty good. I just landed a fix for browser_tests in https://codereview.chromium.org/1632323003/, but ...
4 years, 10 months ago (2016-02-05 05:11:11 UTC) #3
kirr
Made changes in GN build. Fixed review issues. https://codereview.chromium.org/1669793002/diff/1/chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc File chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc (right): https://codereview.chromium.org/1669793002/diff/1/chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc#newcode16 chrome/browser/ui/views/location_bar/page_action_image_view_interactive_uitest.cc:16: #include ...
4 years, 10 months ago (2016-02-05 13:26:24 UTC) #6
tapted
lgtm with a few more nits fixed - thanks! https://codereview.chromium.org/1669793002/diff/1/chrome/test/base/interactive_test_utils_cocoa.mm File chrome/test/base/interactive_test_utils_cocoa.mm (right): https://codereview.chromium.org/1669793002/diff/1/chrome/test/base/interactive_test_utils_cocoa.mm#newcode7 chrome/test/base/interactive_test_utils_cocoa.mm:7: ...
4 years, 10 months ago (2016-02-07 23:15:30 UTC) #7
kirr
On 2016/02/07 23:15:30, tapted wrote: > lgtm with a few more nits fixed - thanks! ...
4 years, 10 months ago (2016-02-08 14:40:43 UTC) #8
themblsha
4 years, 10 months ago (2016-02-08 17:08:58 UTC) #10
kirr@ is out on vacation and asked me to fix the remaining nits so it could be
merged this week.

I've created a new CL here with everything fixed:
https://codereview.chromium.org/1678163002/

https://codereview.chromium.org/1669793002/diff/1/chrome/test/base/interactiv...
File chrome/test/base/interactive_test_utils_cocoa.mm (right):

https://codereview.chromium.org/1669793002/diff/1/chrome/test/base/interactiv...
chrome/test/base/interactive_test_utils_cocoa.mm:7: #include <Carbon/Carbon.h>
On 2016/02/07 23:15:30, tapted wrote:
> On 2016/02/05 05:11:11, tapted wrote:
> > nit: I think this was only used for TransformProcessType, so can probably be
> > removed too
> 
> ping?

You're correct, it compiles without that header just fine.

https://codereview.chromium.org/1669793002/diff/20001/chrome/chrome_tests.gypi
File chrome/chrome_tests.gypi (right):

https://codereview.chromium.org/1669793002/diff/20001/chrome/chrome_tests.gyp...
chrome/chrome_tests.gypi:1122: # Cocoa depended tests.
On 2016/02/07 23:15:30, tapted wrote:
> nit: remove comment && sort. I don't think
> browser_action_button_interactive_uitest needs special treatment -- it's
tightly
> coupled to the Cocoa-based browser window, so when mac_views_browser
substitutes
> a toolkit-views based browser the test won't be needed

Done.

https://codereview.chromium.org/1669793002/diff/20001/chrome/test/BUILD.gn
File chrome/test/BUILD.gn (right):

https://codereview.chromium.org/1669793002/diff/20001/chrome/test/BUILD.gn#ne...
chrome/test/BUILD.gn:497: if (mac_views_browser) {
On 2016/02/07 23:15:30, tapted wrote:
> nit: comment before `The browser window can be views or Cocoa on Mac. Test
> accordingly.` (Hopefully Soon (tm) the .gyp version will go away...)

Done.

https://codereview.chromium.org/1669793002/diff/20001/chrome/test/base/intera...
File chrome/test/base/interactive_test_utils_common_views.cc (right):

https://codereview.chromium.org/1669793002/diff/20001/chrome/test/base/intera...
chrome/test/base/interactive_test_utils_common_views.cc:1: // Copyright (c) 2016
The Chromium Authors. All rights reserved.
On 2016/02/07 23:15:30, tapted wrote:
> nit: no (c)

Done. It appears that the (c) omission is relatively recent, as lots of files
still have it intact.

Powered by Google App Engine
This is Rietveld 408576698