Files
brave-core/components/sync
Mario Sanchez Prada bcd1be8a1e Fix BraveModelTypeWorkerTest.* unit tests
Ownership of a base::SequencedTaskRunnerHandle has moved from the
ModelTypeProcessor class to ModelTypeWorker, so we need to adapt
BraveModelTypeWorkerTest tests to use the correct task environment
by using `base::test::SingleThreadTaskEnvironment` in their scope.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/022298d9c3baef7c024aaac30c0d66737a64f50a

commit 022298d9c3baef7c024aaac30c0d66737a64f50a
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Wed May 5 14:03:35 2021 +0000

    Move ModelTypeProcessor::ConnectSync() call to ModelTypeWorker

    DisconnectSync() is called in ModelTypeWorker::dtor(), so this CL
    moves the connection call to a new ModelTypeWorker method for symmetry.
    The processor is only injected in this method, to avoid any call to
    ModelTypeProcessor::OnUpdateReceived() from happening before
    ConnectSync().

    Bug: None
2021-06-29 16:35:33 -04:00
..