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

Issue 2144013002: Reland of arc: Use the new InstanceHolder for unittests (Closed)

Created:
4 years, 5 months ago by Luis Héctor Chávez
Modified:
4 years, 5 months ago
Reviewers:
hidehiko, stevenjb
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, tapted, Matt Giuca, tfarina, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/a/chromium/src.git@bridge_refactor_first
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of arc: Use the new InstanceHolder for unittests (patchset #1 id:1 of https://codereview.chromium.org/2146573005/ ) Reason for revert: https://codereview.chromium.org/2150583002 should fix the underlying issue that this change surfaced. Original issue's description: > Revert of arc: Use the new InstanceHolder for unittests (patchset #4 id:60001 of https://codereview.chromium.org/2138513002/ ) > > Reason for revert: > Caused unit_tests failure on Linux ChromiumOS Tests (1): > > ArcAppModelBuilderTest.RemoveAppCleanUpFolder > > Original issue's description: > > arc: Use the new InstanceHolder for unittests > > > > Instead of having unit tests go through Mojo and jump through hoops to > > ensure that all messages have propagated to all the threads, we can use > > the new arc::ArcBridgeService::InstanceHolder<T>::SetInstance() to > > directly set the concrete fake (and optional version). This simplifies > > testing quite a bit. > > > > BUG=626695 > > TEST=trybots > > > > Committed: https://crrev.com/c5fffc64c14a0464f8870bbe91df7e945f42c3ca > > Cr-Commit-Position: refs/heads/master@{#405138} > > TBR=hidehiko@chromium.org,stevenjb@chromium.org,lhchavez@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=626695 > > Committed: https://crrev.com/03b1e37434a736bbb5c764dd980787e54c93868b > Cr-Commit-Position: refs/heads/master@{#405165} Committed: https://crrev.com/5aa0d0ed4da47326e168783b8251d8fbf0c58add Cr-Commit-Position: refs/heads/master@{#405785}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fixed bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -276 lines) Patch
M chrome/browser/ui/app_list/app_context_menu_unittest.cc View 1 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_unittest.cc View 1 5 chunks +0 lines, -15 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 6 chunks +23 lines, -56 lines 0 comments Download
M components/arc/arc_bridge_service.cc View 1 2 chunks +0 lines, -131 lines 0 comments Download
M components/arc/arc_bridge_service_impl.h View 1 2 chunks +32 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 1 chunk +133 lines, -1 line 0 comments Download
M components/arc/test/fake_app_instance.h View 1 2 chunks +0 lines, -19 lines 0 comments Download
M components/arc/test/fake_app_instance.cc View 1 2 chunks +1 line, -20 lines 0 comments Download
M components/arc/test/fake_notifications_instance.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M components/arc/test/fake_notifications_instance.cc View 1 2 chunks +2 lines, -9 lines 0 comments Download
M ui/arc/notification/arc_notification_manager_unittest.cc View 1 4 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
Luis Héctor Chávez
Created Reland of arc: Use the new InstanceHolder for unittests
4 years, 5 months ago (2016-07-13 16:24:52 UTC) #1
hidehiko
LGTM. Please wait for the fix is landed, and please rebase and re-run trybots after ...
4 years, 5 months ago (2016-07-13 16:42:50 UTC) #2
stevenjb
c/b/ui lgtm
4 years, 5 months ago (2016-07-13 17:36:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2144013002/270001
4 years, 5 months ago (2016-07-15 17:49:34 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:270001)
4 years, 5 months ago (2016-07-15 17:56:01 UTC) #18
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 17:56:16 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 17:58:01 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5aa0d0ed4da47326e168783b8251d8fbf0c58add
Cr-Commit-Position: refs/heads/master@{#405785}

Powered by Google App Engine
This is Rietveld 408576698