From 7cb155718dd387e594c359ceed38f72d45670eb7 Mon Sep 17 00:00:00 2001
From: Mitsuru Oshima <oshima@chromium.org>
Date: Thu, 7 Jan 2021 19:45:46 +0000
Subject: [PATCH] Move arc overlay's test related code to test support

Bug: None
Change-Id: Ic670b45600d30ec1b4e8a679d9033803c2cea3c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2608655
Reviewed-by: Liquan (Max) Gu <maxlg@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841149}
---
 ash/public/cpp/external_arc/BUILD.gn | 8 ++++----
 components/payments/content/BUILD.gn | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ash/public/cpp/external_arc/BUILD.gn b/ash/public/cpp/external_arc/BUILD.gn
index 8f83d7faa8631..36e6966da1401 100644
--- a/ash/public/cpp/external_arc/BUILD.gn
+++ b/ash/public/cpp/external_arc/BUILD.gn
@@ -30,10 +30,6 @@ static_library("external_arc") {
     "overlay/arc_overlay_controller_impl.h",
     "overlay/arc_overlay_manager.cc",
     "overlay/arc_overlay_manager.h",
-    "overlay/test/fake_arc_overlay_controller_impl.cc",
-    "overlay/test/fake_arc_overlay_controller_impl.h",
-    "overlay/test/test_arc_overlay_manager.cc",
-    "overlay/test/test_arc_overlay_manager.h",
     "toast/arc_toast_surface_manager.cc",
     "toast/arc_toast_surface_manager.h",
   ]
@@ -96,6 +92,10 @@ source_set("test_support") {
     "message_center/mock_arc_notification_item.h",
     "message_center/mock_arc_notification_surface.cc",
     "message_center/mock_arc_notification_surface.h",
+    "overlay/test/fake_arc_overlay_controller_impl.cc",
+    "overlay/test/fake_arc_overlay_controller_impl.h",
+    "overlay/test/test_arc_overlay_manager.cc",
+    "overlay/test/test_arc_overlay_manager.h",
   ]
   deps = [
     ":external_arc",
diff --git a/components/payments/content/BUILD.gn b/components/payments/content/BUILD.gn
index 454066a68f0f5..4a499723163b6 100644
--- a/components/payments/content/BUILD.gn
+++ b/components/payments/content/BUILD.gn
@@ -80,7 +80,7 @@ static_library("content") {
     sources += [ "android_app_communication_chrome_os.cc" ]
 
     deps += [
-      "//ash/public/cpp/external_arc:external_arc",
+      "//ash/public/cpp/external_arc",
       "//components/arc",
       "//components/arc/mojom",
     ]
@@ -232,7 +232,7 @@ source_set("unit_tests") {
     sources += [ "android_app_communication_test_support_chrome_os.cc" ]
 
     deps += [
-      "//ash/public/cpp/external_arc:external_arc",
+      "//ash/public/cpp/external_arc:test_support",
       "//components/arc",
       "//components/arc:arc_test_support",
       "//components/arc/mojom",