#include "base/task/thread_pool/tracked_ref.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/synchronization/atomic_flag.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace internal {
namespace {
class ObjectWithTrackedRefs { … };
}
TEST(TrackedRefTest, TrackedRefObjectDeletion) { … }
TEST(TrackedRefTest, ManyThreadsRacing) { … }
TEST(TrackedRefTest, NoTrackedRefs) { … }
namespace {
void ConsumesTrackedRef(TrackedRef<ObjectWithTrackedRefs> obj) { … }
}
TEST(TrackedRefTest, NoPendingTrackedRefs) { … }
TEST(TrackedRefTest, CopyAndMoveSemantics) { … }
}
}