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

Issue 395783002: [DevTools] Move DevToolsWindow testing code to a separate class. (Closed)

Created:
6 years, 5 months ago by dgozman
Modified:
6 years, 5 months ago
Reviewers:
lushnikov, pfeldman, sky
CC:
chromium-reviews, vsevik, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Project:
chromium
Visibility:
Public.

Description

[DevTools] Move DevToolsWindow testing code to a separate class. This change: - allows for proper docking testing (including toolbox); - removes all test friends from DevToolsWindow; - unifies testing approach to use load callback instead of notifications; - adds simple toolbox tests. BUG=393566 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284423

Patch Set 1 #

Patch Set 2 : mac fix #

Patch Set 3 : Only compile testing code in browser tests #

Patch Set 4 : includes #

Total comments: 1

Patch Set 5 : rebased #

Patch Set 6 : Fixed TaskManagerBrowserTest #

Total comments: 2

Patch Set 7 : Fixed comment #

Patch Set 8 : rebased, added cleanup to some tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -218 lines) Patch
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 2 3 4 16 chunks +76 lines, -94 lines 0 comments Download
M chrome/browser/devtools/devtools_window.h View 1 2 3 4 7 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 7 16 chunks +33 lines, -54 lines 0 comments Download
A chrome/browser/devtools/devtools_window_testing.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/devtools/devtools_window_testing.cc View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/task_manager/task_manager_browsertest.cc View 1 2 3 4 5 2 chunks +17 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 6 7 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm View 1 2 3 4 5 6 7 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
dgozman
Take a look please.
6 years, 5 months ago (2014-07-15 14:22:16 UTC) #1
pfeldman
https://codereview.chromium.org/395783002/diff/60001/chrome/browser/devtools/devtools_window_testing.h File chrome/browser/devtools/devtools_window_testing.h (right): https://codereview.chromium.org/395783002/diff/60001/chrome/browser/devtools/devtools_window_testing.h#newcode21 chrome/browser/devtools/devtools_window_testing.h:21: class DevToolsWindowTesting { Can we place those static methods ...
6 years, 5 months ago (2014-07-16 08:48:57 UTC) #2
pfeldman
lgtm
6 years, 5 months ago (2014-07-16 15:22:24 UTC) #3
dgozman
Scott, could you please take a look as a chrome/ owner?
6 years, 5 months ago (2014-07-17 13:59:14 UTC) #4
sky
I assume you mean everything not under devtools. The rest of things LGTM https://codereview.chromium.org/395783002/diff/100001/chrome/chrome_tests.gypi File ...
6 years, 5 months ago (2014-07-17 16:14:40 UTC) #5
dgozman
https://codereview.chromium.org/395783002/diff/100001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/395783002/diff/100001/chrome/chrome_tests.gypi#newcode1026 chrome/chrome_tests.gypi:1026: 'browser/devtools/devtools_window_testing.h', On 2014/07/17 16:14:40, sky wrote: > .h after ...
6 years, 5 months ago (2014-07-17 16:30:02 UTC) #6
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-07-17 16:30:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/395783002/120001
6 years, 5 months ago (2014-07-17 16:32:05 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 21:05:53 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 21:24:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172131)
6 years, 5 months ago (2014-07-17 21:24:41 UTC) #11
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-07-18 06:00:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/395783002/120001
6 years, 5 months ago (2014-07-18 06:01:19 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 06:25:02 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 06:46:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172229)
6 years, 5 months ago (2014-07-18 06:46:11 UTC) #16
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-07-18 10:36:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/395783002/120001
6 years, 5 months ago (2014-07-18 10:37:13 UTC) #18
commit-bot: I haz the power
Change committed as 284050
6 years, 5 months ago (2014-07-18 10:38:28 UTC) #19
gab
A revert of this CL has been created in https://codereview.chromium.org/403833002/ by gab@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-18 18:57:40 UTC) #20
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-07-21 13:07:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/395783002/140001
6 years, 5 months ago (2014-07-21 13:08:03 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 14:03:32 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 14:07:07 UTC) #24
Message was sent while issue was closed.
Change committed as 284423

Powered by Google App Engine
This is Rietveld 408576698