|
|
Created:
4 years, 3 months ago by Tom (Use chromium acct) Modified:
4 years, 3 months ago Reviewers:
Elliot Glaysher, sky CC:
chromium-reviews, tfarina, dcheng, Elliot Glaysher Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionX11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests
BUG=640741
Committed: https://crrev.com/4dcd8ad19534e6084fff6bc2229acd90ecf4c316
Cr-Commit-Position: refs/heads/master@{#417978}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move TestDesktopScreenX11 into its own file #
Total comments: 8
Patch Set 3 : Set screen in view_event_test_platform_part_default #Patch Set 4 : Move test_desktop_screen_x11 to test_support_internal #
Created: 4 years, 3 months ago
Messages
Total messages: 34 (22 generated)
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
thomasanderson@google.com changed reviewers: + sky@chromium.org
+ sky for review + erg FYI
https://codereview.chromium.org/2327623002/diff/1/ui/views/widget/desktop_aur... File ui/views/widget/desktop_aura/desktop_screen_x11.h (right): https://codereview.chromium.org/2327623002/diff/1/ui/views/widget/desktop_aur... ui/views/widget/desktop_aura/desktop_screen_x11.h:106: class VIEWS_EXPORT TestDesktopScreenX11 : public DesktopScreenX11 { Document what this class does and why it's needed. Also, it should be in its own header that is only built in tests.
Description was changed from ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 ========== to ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 ==========
sky@chromium.org changed reviewers: + erg@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-ge...)
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2327623002/diff/1/ui/views/widget/desktop_aur... File ui/views/widget/desktop_aura/desktop_screen_x11.h (right): https://codereview.chromium.org/2327623002/diff/1/ui/views/widget/desktop_aur... ui/views/widget/desktop_aura/desktop_screen_x11.h:106: class VIEWS_EXPORT TestDesktopScreenX11 : public DesktopScreenX11 { On 2016/09/08 23:41:24, sky wrote: > Document what this class does and why it's needed. Also, it should be in its own > header that is only built in tests. Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn#newco... ui/views/BUILD.gn:753: "test/test_desktop_screen_x11.cc", test_support_internal isn't visible outside of ui/views. You need to move this, most likely to test_support. https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... File ui/views/test/test_desktop_screen_x11.h (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... ui/views/test/test_desktop_screen_x11.h:30: gfx::Point GetCursorScreenPoint() override; Generally we prefix overrides with where the override comes from, e.g. // DesktopScreenX11: gfx::Point GetCursorScreenPoint() override; Also, newline between 30/31. https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... ui/views/test/test_desktop_screen_x11.h:31: void SetCursorScreenPoint(const gfx::Point& point); optional: We generally inline trivial functions like this (and then name using unix_hacker_style), in this case set_cursor_screen_point.
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn#newco... ui/views/BUILD.gn:753: "test/test_desktop_screen_x11.cc", On 2016/09/09 15:25:35, sky wrote: > test_support_internal isn't visible outside of ui/views. You need to move this, > most likely to test_support. The tests were alerady able to link but ok, done https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... File ui/views/test/test_desktop_screen_x11.h (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... ui/views/test/test_desktop_screen_x11.h:30: gfx::Point GetCursorScreenPoint() override; On 2016/09/09 15:25:35, sky wrote: > Generally we prefix overrides with where the override comes from, e.g. > // DesktopScreenX11: > gfx::Point GetCursorScreenPoint() override; > > Also, newline between 30/31. Done. https://codereview.chromium.org/2327623002/diff/20001/ui/views/test/test_desk... ui/views/test/test_desktop_screen_x11.h:31: void SetCursorScreenPoint(const gfx::Point& point); On 2016/09/09 15:25:35, sky wrote: > optional: We generally inline trivial functions like this (and then name using > unix_hacker_style), in this case set_cursor_screen_point. Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn#newco... ui/views/BUILD.gn:753: "test/test_desktop_screen_x11.cc", On 2016/09/09 21:23:16, Tom Anderson wrote: > On 2016/09/09 15:25:35, sky wrote: > > test_support_internal isn't visible outside of ui/views. You need to move > this, > > most likely to test_support. > > The tests were alerady able to link > but ok, done ERROR at //ui/views/test/ui_controls_factory_desktop_aurax11.cc:28:11: Include not allowed. #include "ui/views/test/test_desktop_screen_x11.h" ^-------------------------------------- It is not in any dependency of //ui/views:test_support_internal The include file is in the target(s): //ui/views:test_support which should somehow be reachable.
https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn#newco... ui/views/BUILD.gn:753: "test/test_desktop_screen_x11.cc", On 2016/09/09 21:45:40, Tom Anderson wrote: > On 2016/09/09 21:23:16, Tom Anderson wrote: > > On 2016/09/09 15:25:35, sky wrote: > > > test_support_internal isn't visible outside of ui/views. You need to move > > this, > > > most likely to test_support. > > > > The tests were alerady able to link > > but ok, done > > ERROR at //ui/views/test/ui_controls_factory_desktop_aurax11.cc:28:11: Include > not allowed. > #include "ui/views/test/test_desktop_screen_x11.h" > ^-------------------------------------- > It is not in any dependency of > //ui/views:test_support_internal > The include file is in the target(s): > //ui/views:test_support > which should somehow be reachable. Sorry, I think the way you had it is right. I missed that 'test_support' has a public_dep on this. So, keep the file in test_support_internal.
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/09/09 22:21:02, sky wrote: > https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn > File ui/views/BUILD.gn (right): > > https://codereview.chromium.org/2327623002/diff/20001/ui/views/BUILD.gn#newco... > ui/views/BUILD.gn:753: "test/test_desktop_screen_x11.cc", > On 2016/09/09 21:45:40, Tom Anderson wrote: > > On 2016/09/09 21:23:16, Tom Anderson wrote: > > > On 2016/09/09 15:25:35, sky wrote: > > > > test_support_internal isn't visible outside of ui/views. You need to move > > > this, > > > > most likely to test_support. > > > > > > The tests were alerady able to link > > > but ok, done > > > > ERROR at //ui/views/test/ui_controls_factory_desktop_aurax11.cc:28:11: Include > > not allowed. > > #include "ui/views/test/test_desktop_screen_x11.h" > > ^-------------------------------------- > > It is not in any dependency of > > //ui/views:test_support_internal > > The include file is in the target(s): > > //ui/views:test_support > > which should somehow be reachable. > > Sorry, I think the way you had it is right. I missed that 'test_support' has a > public_dep on this. So, keep the file in test_support_internal. Moved back. Looks like tests are all green
LGTM
The CQ bit was checked by thomasanderson@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 ========== to ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 ========== to ========== X11: Add TestDesktopScreenX11 to simulate mouse movement in ui tests BUG=640741 Committed: https://crrev.com/4dcd8ad19534e6084fff6bc2229acd90ecf4c316 Cr-Commit-Position: refs/heads/master@{#417978} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/4dcd8ad19534e6084fff6bc2229acd90ecf4c316 Cr-Commit-Position: refs/heads/master@{#417978} |