-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sync][Lacros] Factor out FakeSyncMojoService
Fake/Mock implementations of Crosapi SyncService is already used in some form by both unit and integration tests. With upcoming implementation of apps toggle sharing there will be even more usages, so this CL attempts to introduce more universal implementation under components/sync/chromeos/lacros. Note: new fakes are slightly different from prior versions used in unit_tests, this is to make them easier to use in other scenarios and to keep them closer to the real Crosapi. Note: this CL doesn't include updating of browser tests to keep the size reasonable (to be done in follow up CL). Bug: 1327602, 1330894 Change-Id: I2644e6729dd44ee80cd636b170bee082312d2a8f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3757733 Reviewed-by: Marc Treib <treib@chromium.org> Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1028365}
- Loading branch information
Maksim Moskvitin
authored and
Chromium LUCI CQ
committed
Jul 26, 2022
1 parent
cc419b4
commit 71c2a91
Showing
8 changed files
with
333 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2022 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
static_library("test_support") { | ||
testonly = true | ||
|
||
sources = [ | ||
"fake_sync_explicit_passphrase_client_ash.cc", | ||
"fake_sync_explicit_passphrase_client_ash.h", | ||
"fake_sync_mojo_service.cc", | ||
"fake_sync_mojo_service.h", | ||
] | ||
public_deps = [ | ||
"//chromeos/crosapi/mojom", | ||
"//mojo/public/cpp/bindings", | ||
"//testing/gmock", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include_rules = [ | ||
"+chromeos/crosapi/mojom", | ||
"+mojo/public/cpp/bindings", | ||
] |
Oops, something went wrong.