[stts-notifs] Move chrome/browser/sharing to components/sharing_message
This CL moves SharingService and it's dependencies to the components
directory.
This is mostly a clean move, with some exceptions:
* To remove the dependencies on BrowserThread, SingleThreadTaskRunners
are injected into SharingService and SharingMessageSender. The
TaskRunner in SharingService is also changed from BEST_EFFORT to
USER_VISIBLE.
* SharingDeviceRegistration is made a virtual class and implemented
separately in chrome/browser and ios/ due to a dependency on
chrome/android/
Bug: 353708939
Change-Id: Ic4c8a7f91f947a6db3f58a50ee6806e9e956320d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5718879
Reviewed-by: Josh Horwich <[email protected]>
Commit-Queue: Hira Mahmood <[email protected]>
Reviewed-by: Rushan Suleymanov <[email protected]>
Reviewed-by: Cait Phillips <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1335472}
diff --git a/components/sharing_message/mock_sharing_message_sender.cc b/components/sharing_message/mock_sharing_message_sender.cc
new file mode 100644
index 0000000..15ccba7
--- /dev/null
+++ b/components/sharing_message/mock_sharing_message_sender.cc
@@ -0,0 +1,12 @@
+// Copyright 2020 The Chromium Authors
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/sharing_message/mock_sharing_message_sender.h"
+
+MockSharingMessageSender::MockSharingMessageSender()
+ : SharingMessageSender(
+ /*local_device_info_provider=*/nullptr,
+ /*task_ruunner=*/nullptr) {}
+
+MockSharingMessageSender::~MockSharingMessageSender() = default;