#include <memory>
#include "base/atomic_sequence_num.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/gtest_util.h"
#include "base/threading/simple_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
class SetIntRunner : public DelegateSimpleThread::Delegate { … };
class ControlledRunner : public DelegateSimpleThread::Delegate { … };
class WaitEventRunner : public DelegateSimpleThread::Delegate { … };
class SeqRunner : public DelegateSimpleThread::Delegate { … };
class VerifyPoolRunner : public DelegateSimpleThread::Delegate { … };
}
TEST(SimpleThreadTest, CreateAndJoin) { … }
TEST(SimpleThreadTest, WaitForEvent) { … }
TEST(SimpleThreadTest, NonJoinableStartAndDieOnJoin) { … }
TEST(SimpleThreadTest, NonJoinableInactiveDelegateDestructionIsOkay) { … }
TEST(SimpleThreadTest, ThreadPool) { … }
}