// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h" #include <utility> #include "testing/gtest/include/gtest/gtest.h" namespace WTF { namespace { // Tests that "currying" CrossThreadFunction and CrossThreadOnceFunction works, // as it does with the base counterparts. struct SomeFunctor; static_assert …; static_assert …; TEST(CrossThreadFunctionalTest, CrossThreadBindRepeating_CrossThreadFunction) { … } TEST(CrossThreadFunctionalTest, CrossThreadBindOnce_CrossThreadOnceFunction) { … } TEST(CrossThreadFunctionalTest, CrossThreadBindOnce_CrossThreadFunction) { … } } // namespace } // namespace WTF