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

Issue 49773003: ChromeOS: Remove MockDBusThreadManager. (Closed)

Created:
7 years, 1 month ago by pneubeck (no reviews)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, derat+watch_chromium.org, yukishiino+watch_chromium.org, Ilya Sherman, gauravsh+watch_chromium.org, asvitkine+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, jar (doing other things), davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

ChromeOS: Remove MockDBusThreadManager. - Extends FakeDBusThreadManager about DBusClient setters. - Removes default initialization of DBusClients from FakeDBusThreadManager. - Replaces all occurrences of MockDBusThreadManager in tests by FakeDBusThreadManager. - Every test now creates exactly the DBusClients that are required. - Removes all references to Fake/Stub implementations from the DBusThreadManagerImpl used for production. Depends on: https://codereview.chromium.org/50243005/ BUG=275286 TBR=miket@chromium.org,mkwst@chromium.org,rtenneti@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234172

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Removed helper files. #

Total comments: 2

Patch Set 3 : Removed helper from chromeos.gyp . #

Patch Set 4 : Rebased. #

Patch Set 5 : Fixed compilation, rebased. #

Patch Set 6 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+716 lines, -832 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/crash_restore_browsertest.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 3 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker_browsertest.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screens/network_screen_browsertest.cc View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screens/update_screen_browsertest.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_cros_browser_test.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/enterprise_install_attributes.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/power_policy_browsertest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/power/peripheral_battery_observer_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs_unittest.cc View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service_factory_unittest.cc View 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/system_private/system_private_apitest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 3 chunks +15 lines, -4 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M chromeos/cryptohome/system_salt_getter_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/dbus_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 4 chunks +13 lines, -2 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 11 chunks +81 lines, -82 lines 0 comments Download
M chromeos/dbus/fake_dbus_thread_manager.h View 1 2 3 4 5 3 chunks +69 lines, -136 lines 0 comments Download
M chromeos/dbus/fake_dbus_thread_manager.cc View 1 2 3 4 5 5 chunks +272 lines, -84 lines 0 comments Download
M chromeos/dbus/ibus/mock_ibus_client.h View 1 chunk +2 lines, -1 line 0 comments Download
D chromeos/dbus/mock_dbus_thread_manager.h View 1 2 3 4 5 1 chunk +0 lines, -178 lines 0 comments Download
D chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -162 lines 0 comments Download
M chromeos/dbus/mock_shill_manager_client.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M chromeos/dbus/mock_shill_profile_client.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M chromeos/dbus/power_policy_controller.h View 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/power_policy_controller.cc View 2 chunks +12 lines, -7 lines 0 comments Download
M chromeos/dbus/power_policy_controller_unittest.cc View 10 chunks +16 lines, -13 lines 0 comments Download
M chromeos/disks/disk_mount_manager_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_unittest.cc View 20 chunks +63 lines, -66 lines 0 comments Download
M chromeos/network/network_configuration_handler_unittest.cc View 4 chunks +28 lines, -15 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 1 2 3 4 5 3 chunks +15 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_profile_chromeos_unittest.cc View 1 2 3 4 5 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pneubeck (no reviews)
7 years, 1 month ago (2013-11-03 20:19:17 UTC) #1
pneubeck (no reviews)
Hi Satoru, I uploaded three new CLs, which I think address all ideas and concerns ...
7 years, 1 month ago (2013-11-03 20:23:56 UTC) #2
satorux1
Thank you for creating this patch! It's a big undertaking. I like this approach as ...
7 years, 1 month ago (2013-11-05 03:55:15 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.cc File chromeos/dbus/stub_dbus_thread_manager_helper.cc (right): https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.cc#newcode42 chromeos/dbus/stub_dbus_thread_manager_helper.cc:42: STUB_DBUS_CLIENT_IMPLEMENTATION; On 2013/11/05 03:55:16, satorux1 wrote: > I think ...
7 years, 1 month ago (2013-11-05 10:03:03 UTC) #4
satorux1
https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h File chromeos/dbus/stub_dbus_thread_manager_helper.h (right): https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h#newcode14 chromeos/dbus/stub_dbus_thread_manager_helper.h:14: CHROMEOS_EXPORT void SetStubClients(FakeDBusThreadManager* manager); On 2013/11/05 10:03:04, pneubeck wrote: ...
7 years, 1 month ago (2013-11-05 10:18:55 UTC) #5
pneubeck (no reviews)
https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h File chromeos/dbus/stub_dbus_thread_manager_helper.h (right): https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h#newcode14 chromeos/dbus/stub_dbus_thread_manager_helper.h:14: CHROMEOS_EXPORT void SetStubClients(FakeDBusThreadManager* manager); On 2013/11/05 10:18:56, satorux1 wrote: ...
7 years, 1 month ago (2013-11-05 10:58:43 UTC) #6
pneubeck (no reviews)
https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h File chromeos/dbus/stub_dbus_thread_manager_helper.h (right): https://codereview.chromium.org/49773003/diff/310001/chromeos/dbus/stub_dbus_thread_manager_helper.h#newcode14 chromeos/dbus/stub_dbus_thread_manager_helper.h:14: CHROMEOS_EXPORT void SetStubClients(FakeDBusThreadManager* manager); On 2013/11/05 10:58:44, pneubeck wrote: ...
7 years, 1 month ago (2013-11-05 16:14:58 UTC) #7
satorux1
LGTM. Please make sure that all tests pass. https://codereview.chromium.org/49773003/diff/610001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/49773003/diff/610001/chromeos/chromeos.gyp#newcode117 chromeos/chromeos.gyp:117: 'dbus/stub_dbus_thread_manager_helper.h', ...
7 years, 1 month ago (2013-11-06 01:50:15 UTC) #8
pneubeck (no reviews)
https://codereview.chromium.org/49773003/diff/610001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/49773003/diff/610001/chromeos/chromeos.gyp#newcode117 chromeos/chromeos.gyp:117: 'dbus/stub_dbus_thread_manager_helper.h', On 2013/11/06 01:50:16, satorux1 wrote: > remove the ...
7 years, 1 month ago (2013-11-06 14:55:34 UTC) #9
satorux1
lots of tests seemed to fail: http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos/builds/172901
7 years, 1 month ago (2013-11-08 06:23:03 UTC) #10
pneubeck (no reviews)
On 2013/11/08 06:23:03, satorux1 wrote: > lots of tests seemed to fail: > http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos/builds/172901 Yeah, ...
7 years, 1 month ago (2013-11-08 10:01:48 UTC) #11
pneubeck (no reviews)
Please take a look at the test changes: miket: c/b/apps/app_browsertest.cc c/b/extensions/api/system_private/system_private_apitest.cc device/bluetooth/bluetooth_chromeos_unittest.cc device/bluetooth/bluetooth_profile_chromeos_unittest.cc mkwst: c/b/browsing_data/browsing_data_remover_unittest.cc ...
7 years, 1 month ago (2013-11-08 16:46:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/49773003/1080001
7 years, 1 month ago (2013-11-10 09:54:36 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-10 16:02:54 UTC) #14
Message was sent while issue was closed.
Change committed as 234172

Powered by Google App Engine
This is Rietveld 408576698