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

Issue 2146573005: Revert of arc: Use the new InstanceHolder for unittests (Closed)

Created:
4 years, 5 months ago by engedy
Modified:
4 years, 5 months ago
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

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}

Patch Set 1 #

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

Messages

Total messages: 10 (3 generated)
engedy
Created Revert of arc: Use the new InstanceHolder for unittests
4 years, 5 months ago (2016-07-13 15:50:50 UTC) #2
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/2146573005/1
4 years, 5 months ago (2016-07-13 15:51:17 UTC) #3
Luis Héctor Chávez
On 2016/07/13 15:51:17, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 5 months ago (2016-07-13 15:51:58 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-13 15:52:12 UTC) #6
engedy
Failed run: https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%281%29/builds/22769 Test output: ArcAppModelBuilderTest.RemoveAppCleanUpFolder (run #1): [ RUN ] ArcAppModelBuilderTest.RemoveAppCleanUpFolder Received signal 11 ...
4 years, 5 months ago (2016-07-13 15:52:14 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/03b1e37434a736bbb5c764dd980787e54c93868b Cr-Commit-Position: refs/heads/master@{#405165}
4 years, 5 months ago (2016-07-13 15:54:27 UTC) #9
Luis Héctor Chávez
4 years, 5 months ago (2016-07-13 16:24:52 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2144013002/ by lhchavez@chromium.org.

The reason for reverting is: https://codereview.chromium.org/2150583002 should
fix the underlying issue that this change surfaced..

Powered by Google App Engine
This is Rietveld 408576698