#include "components/sync/base/weak_handle.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
_;
SaveArg;
StrictMock;
class Base { … };
class Derived : public Base { … };
class WeakHandleTest : public ::testing::Test { … };
TEST_F(WeakHandleTest, Uninitialized) { … }
TEST_F(WeakHandleTest, InitializedAfterDestroy) { … }
TEST_F(WeakHandleTest, InitializedAfterInvalidate) { … }
TEST_F(WeakHandleTest, Call) { … }
TEST_F(WeakHandleTest, CallAfterDestroy) { … }
TEST_F(WeakHandleTest, CallAfterInvalidate) { … }
TEST_F(WeakHandleTest, CallThreaded) { … }
TEST_F(WeakHandleTest, CallAfterDestroyThreaded) { … }
TEST_F(WeakHandleTest, CallAfterInvalidateThreaded) { … }
TEST_F(WeakHandleTest, DeleteOnOtherThread) { … }
void CallTestWithSelf(const WeakHandle<Base>& b1) { … }
TEST_F(WeakHandleTest, WithDestroyedThread) { … }
TEST_F(WeakHandleTest, InitializedAcrossCopyAssign) { … }
TEST_F(WeakHandleTest, TypeConversionConstructor) { … }
TEST_F(WeakHandleTest, TypeConversionConstructorMakeWeakHandle) { … }
TEST_F(WeakHandleTest, TypeConversionConstructorAssignment) { … }
TEST_F(WeakHandleTest, TypeConversionConstructorUninitialized) { … }
TEST_F(WeakHandleTest, TypeConversionConstructorUninitializedAssignment) { … }
}