// Copyright 2017 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/os_crypt/sync/key_storage_linux.h" #include "base/functional/bind.h" #include "base/memory/raw_ptr.h" #include "base/task/sequenced_task_runner.h" #include "base/test/test_simple_task_runner.h" #include "testing/gtest/include/gtest/gtest.h" // We use a fake to avoid calling a real backend. We'll make calls to it and // test that the wrapping methods post accordingly. class FakeKeyStorageLinux : public KeyStorageLinux { … }; class KeyStorageLinuxTest : public testing::Test { … }; TEST_F(KeyStorageLinuxTest, SkipPostingToSameTaskRunner) { … } TEST_F(KeyStorageLinuxTest, IgnoreTaskRunnerIfNull) { … }