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

Issue 394103004: Move DnsApiTest.DnsResolveIPLiteral and DnsApiTest.DnsResolveHostname to app_shell_browsertests. (Closed)

Created:
6 years, 5 months ago by Yoyo Zhou
Modified:
6 years, 5 months ago
Reviewers:
James Cook, mmenke
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Move DnsApiTest.DnsResolveIPLiteral and DnsApiTest.DnsResolveHostname to app_shell_browsertests. This results in a significant speedup; tests run in <500ms instead of >2s because the lengthy browser_tests startup is avoided. This clones some aspects of extension_function_test_utils into extensions/browser/api_test_utils.cc. Later CLs will clean up the redundancy. BUG=388893 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284872

Patch Set 1 #

Total comments: 38

Patch Set 2 : chch #

Patch Set 3 : rebase #

Total comments: 9

Patch Set 4 : moar changes #

Patch Set 5 : rebase #

Patch Set 6 : rebase2 #

Patch Set 7 : fix compile #

Patch Set 8 : correcter gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -262 lines) Patch
M apps/shell/app_shell.gyp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M apps/shell/browser/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A apps/shell/browser/dns_apitest.cc View 1 2 3 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/dns/dns_apitest.cc View 2 chunks +5 lines, -76 lines 0 comments Download
D chrome/browser/extensions/api/dns/mock_host_resolver_creator.h View 1 chunk +0 lines, -51 lines 0 comments Download
D chrome/browser/extensions/api/dns/mock_host_resolver_creator.cc View 1 chunk +0 lines, -70 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_apitest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_tcp/sockets_tcp_apitest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_apitest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/sockets_udp/sockets_udp_apitest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 3 3 chunks +20 lines, -34 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/api/dns/dns_api.cc View 1 chunk +1 line, -2 lines 0 comments Download
M extensions/browser/api/dns/host_resolver_wrapper.h View 2 chunks +12 lines, -6 lines 0 comments Download
M extensions/browser/api/dns/host_resolver_wrapper.cc View 2 chunks +5 lines, -2 lines 0 comments Download
A + extensions/browser/api/dns/mock_host_resolver_creator.h View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
A + extensions/browser/api/dns/mock_host_resolver_creator.cc View 1 2 3 3 chunks +10 lines, -9 lines 0 comments Download
M extensions/browser/api/socket/socket_api.cc View 1 chunk +1 line, -2 lines 0 comments Download
A extensions/browser/api_test_utils.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A extensions/browser/api_test_utils.cc View 1 2 3 1 chunk +132 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Yoyo Zhou
James, PTAL Matt, please review the addition of "+net" to apps/shell/browser/DEPS https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): ...
6 years, 5 months ago (2014-07-16 02:30:26 UTC) #1
mmenke
https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode8 apps/shell/browser/dns_apitest.cc:8: #include "base/values.h" You're missing the header for OVERRIDE. Suggest ...
6 years, 5 months ago (2014-07-16 14:05:55 UTC) #2
James Cook
Awesome that this makes things so much faster. https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode1 apps/shell/browser/dns_apitest.cc:1: // ...
6 years, 5 months ago (2014-07-16 17:15:32 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode1 apps/shell/browser/dns_apitest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 5 months ago (2014-07-18 02:45:31 UTC) #4
tfarina
https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode1 apps/shell/browser/dns_apitest.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 5 months ago (2014-07-18 02:47:37 UTC) #5
James Cook
LGTM with nits https://codereview.chromium.org/394103004/diff/60001/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/60001/apps/shell/browser/dns_apitest.cc#newcode86 apps/shell/browser/dns_apitest.cc:86: int result_code; nit: Init to 0 ...
6 years, 5 months ago (2014-07-18 20:32:49 UTC) #6
mmenke
LGTM https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode17 apps/shell/browser/dns_apitest.cc:17: #include "net/dns/mock_host_resolver.h" On 2014/07/18 02:45:30, Yoyo Zhou wrote: ...
6 years, 5 months ago (2014-07-18 21:32:30 UTC) #7
Yoyo Zhou
https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc File apps/shell/browser/dns_apitest.cc (right): https://codereview.chromium.org/394103004/diff/1/apps/shell/browser/dns_apitest.cc#newcode17 apps/shell/browser/dns_apitest.cc:17: #include "net/dns/mock_host_resolver.h" On 2014/07/18 21:32:30, mmenke wrote: > On ...
6 years, 5 months ago (2014-07-22 00:10:31 UTC) #8
Yoyo Zhou
rebase
6 years, 5 months ago (2014-07-22 00:13:01 UTC) #9
Yoyo Zhou
rebase2
6 years, 5 months ago (2014-07-22 21:26:16 UTC) #10
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 5 months ago (2014-07-22 21:26:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/394103004/120001
6 years, 5 months ago (2014-07-22 21:28:09 UTC) #12
Yoyo Zhou
The CQ bit was unchecked by yoz@chromium.org
6 years, 5 months ago (2014-07-22 22:02:23 UTC) #13
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 5 months ago (2014-07-22 22:10:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/394103004/140001
6 years, 5 months ago (2014-07-22 22:11:56 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-23 01:22:02 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 02:11:43 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/40513)
6 years, 5 months ago (2014-07-23 02:11:44 UTC) #18
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 5 months ago (2014-07-23 02:20:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/394103004/160001
6 years, 5 months ago (2014-07-23 02:22:31 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 06:52:44 UTC) #21
Message was sent while issue was closed.
Change committed as 284872

Powered by Google App Engine
This is Rietveld 408576698