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

Issue 83633004: Do not spawn a thread in browser/interactive ui tests before spawning sandbox host process (Closed)

Created:
7 years, 1 month ago by oshima
Modified:
7 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, jln (very slow on Chromium)
Visibility:
Public.

Description

Do not spawn a thread in browser/interactive ui tests before spawning sandbox host process * Introduced DBThreadManager::SetInstanceForTesting to specify the instance to be used when DBThreadManager::Initialize is called in the browser setup rocess. * Temporarily stop the thread in EmbeddedTestServer to fork/exec sandbox host process properly. BUG=322732 TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238554

Patch Set 1 : #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : updated comment. start and listen #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -64 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/crash_restore_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 1 2 3 4 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/screens/network_screen_browsertest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/update_screen_browsertest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 5 6 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/power/peripheral_battery_observer_browsertest.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/system_private/system_private_apitest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 1 chunk +12 lines, -4 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 5 chunks +21 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_sandbox_host_linux.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.h View 1 2 3 4 chunks +33 lines, -10 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 2 3 4 5 4 chunks +32 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
oshima
7 years ago (2013-11-25 20:35:23 UTC) #1
satorux1
https://codereview.chromium.org/83633004/diff/170001/chrome/browser/chromeos/login/kiosk_browsertest.cc File chrome/browser/chromeos/login/kiosk_browsertest.cc (right): https://codereview.chromium.org/83633004/diff/170001/chrome/browser/chromeos/login/kiosk_browsertest.cc#newcode252 chrome/browser/chromeos/login/kiosk_browsertest.cc:252: embedded_test_server()->StopThread(); this is not obvious. could you add some ...
7 years ago (2013-11-26 01:22:57 UTC) #2
oshima
https://codereview.chromium.org/83633004/diff/170001/chrome/browser/chromeos/login/kiosk_browsertest.cc File chrome/browser/chromeos/login/kiosk_browsertest.cc (right): https://codereview.chromium.org/83633004/diff/170001/chrome/browser/chromeos/login/kiosk_browsertest.cc#newcode252 chrome/browser/chromeos/login/kiosk_browsertest.cc:252: embedded_test_server()->StopThread(); On 2013/11/26 01:22:58, satorux1 wrote: > this is ...
7 years ago (2013-11-26 02:18:42 UTC) #3
oshima
https://codereview.chromium.org/83633004/diff/210001/net/test/embedded_test_server/embedded_test_server.h File net/test/embedded_test_server/embedded_test_server.h (right): https://codereview.chromium.org/83633004/diff/210001/net/test/embedded_test_server/embedded_test_server.h#newcode55 net/test/embedded_test_server/embedded_test_server.h:55: // The common use case for unit tests is ...
7 years ago (2013-11-26 02:26:02 UTC) #4
satorux1
LGTM https://codereview.chromium.org/83633004/diff/170001/chromeos/dbus/dbus_thread_manager.h File chromeos/dbus/dbus_thread_manager.h (right): https://codereview.chromium.org/83633004/diff/170001/chromeos/dbus/dbus_thread_manager.h#newcode90 chromeos/dbus/dbus_thread_manager.h:90: static void SetInstanceForTesting(DBusThreadManager* dbus_thread_manager); On 2013/11/26 02:18:43, oshima ...
7 years ago (2013-11-26 06:52:07 UTC) #5
oshima
I needed one more change in EmbeddedTestServer to listen on the socket using new thread. ...
7 years ago (2013-11-26 20:46:44 UTC) #6
satorux1
https://codereview.chromium.org/83633004/diff/280001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (left): https://codereview.chromium.org/83633004/diff/280001/chrome/browser/apps/app_browsertest.cc#oldcode1276 chrome/browser/apps/app_browsertest.cc:1276: chromeos::DBusThreadManager::Shutdown(); Is it ok to remove this? I thought ...
7 years ago (2013-11-27 03:27:17 UTC) #7
oshima
https://codereview.chromium.org/83633004/diff/280001/chrome/browser/apps/app_browsertest.cc File chrome/browser/apps/app_browsertest.cc (left): https://codereview.chromium.org/83633004/diff/280001/chrome/browser/apps/app_browsertest.cc#oldcode1276 chrome/browser/apps/app_browsertest.cc:1276: chromeos::DBusThreadManager::Shutdown(); On 2013/11/27 03:27:17, satorux1 wrote: > Is it ...
7 years ago (2013-11-27 07:41:54 UTC) #8
satorux1
lgtm. sorry for the belated response
7 years ago (2013-11-28 06:29:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/83633004/290001
7 years ago (2013-11-28 09:15:00 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38548
7 years ago (2013-11-28 09:28:33 UTC) #11
oshima
kbr -> content/browser/renderer_host/render_sandbox_host_linux.cc
7 years ago (2013-12-02 18:40:41 UTC) #12
Ken Russell (switch to Gerrit)
piman is a better reviewer for the content/browser/renderer_host/render_sandbox_host_linux.cc change than me. +jln as FYI
7 years ago (2013-12-03 22:02:11 UTC) #13
piman
lgtm
7 years ago (2013-12-03 22:51:52 UTC) #14
oshima
tbr'ing sky for trivial changes in chrome/browser content/browser
7 years ago (2013-12-03 23:46:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/83633004/290001
7 years ago (2013-12-04 00:13:35 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=39250
7 years ago (2013-12-04 00:35:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/83633004/310001
7 years ago (2013-12-04 00:47:17 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-04 04:03:01 UTC) #19
Message was sent while issue was closed.
Change committed as 238554

Powered by Google App Engine
This is Rietveld 408576698