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

Issue 472963002: athena: Add a test for split-view controller. (Closed)

Created:
6 years, 4 months ago by sadrul
Modified:
6 years, 4 months ago
Reviewers:
oshima, mfomitchev
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

athena: Add a test for split-view controller. The coverage is for ActivateSplitMode() to make sure that it selects the correct windows when at least one of the params is NULL. BUG=383421, 403945 R=oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289904

Patch Set 1 #

Total comments: 8

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -11 lines) Patch
M athena/athena.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M athena/wm/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M athena/wm/split_view_controller.h View 4 chunks +10 lines, -4 lines 0 comments Download
M athena/wm/split_view_controller.cc View 1 2 4 chunks +18 lines, -7 lines 0 comments Download
A athena/wm/split_view_controller_unittest.cc View 1 2 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sadrul
6 years, 4 months ago (2014-08-14 18:17:40 UTC) #1
oshima
I was also working on a test for split mode (for shotcut) and has been ...
6 years, 4 months ago (2014-08-14 19:52:44 UTC) #2
mfomitchev
https://codereview.chromium.org/472963002/diff/1/athena/wm/split_view_controller_unittest.cc File athena/wm/split_view_controller_unittest.cc (right): https://codereview.chromium.org/472963002/diff/1/athena/wm/split_view_controller_unittest.cc#newcode77 athena/wm/split_view_controller_unittest.cc:77: EXPECT_EQ(windows[0], controller.right_window()); Should we also confirm that windows[0] moves ...
6 years, 4 months ago (2014-08-14 22:30:21 UTC) #3
oshima
My CL will take a bit more time and I don't want to block your ...
6 years, 4 months ago (2014-08-14 23:09:44 UTC) #4
sadrul
https://codereview.chromium.org/472963002/diff/1/athena/wm/split_view_controller.h File athena/wm/split_view_controller.h (right): https://codereview.chromium.org/472963002/diff/1/athena/wm/split_view_controller.h#newcode91 athena/wm/split_view_controller.h:91: // Can be NULL (in tests). On 2014/08/14 23:09:44, ...
6 years, 4 months ago (2014-08-15 00:20:14 UTC) #5
oshima
lgtm
6 years, 4 months ago (2014-08-15 00:52:54 UTC) #6
mfomitchev
https://codereview.chromium.org/472963002/diff/20001/athena/wm/split_view_controller_unittest.cc File athena/wm/split_view_controller_unittest.cc (right): https://codereview.chromium.org/472963002/diff/20001/athena/wm/split_view_controller_unittest.cc#newcode88 athena/wm/split_view_controller_unittest.cc:88: EXPECT_EQ(windows[4], *list_provider.GetWindowList().rbegin()); Do a check for the position of ...
6 years, 4 months ago (2014-08-15 14:47:04 UTC) #7
sadrul
Committed patchset #3 manually as 289904 (presubmit successful).
6 years, 4 months ago (2014-08-15 16:27:21 UTC) #8
sadrul
6 years, 4 months ago (2014-08-15 16:27:46 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/472963002/diff/20001/athena/wm/split_view_con...
File athena/wm/split_view_controller_unittest.cc (right):

https://codereview.chromium.org/472963002/diff/20001/athena/wm/split_view_con...
athena/wm/split_view_controller_unittest.cc:88: EXPECT_EQ(windows[4],
*list_provider.GetWindowList().rbegin());
On 2014/08/15 14:47:03, mfomitchev_OOO_Aug16-24 wrote:
> Do a check for the position of windows[5] in the window list as well?

Done.

Powered by Google App Engine
This is Rietveld 408576698