#include "base/message_loop/work_id_provider.h"
#include <limits>
#include <memory>
#include <utility>
#include "base/functional/callback.h"
#include "base/test/bind.h"
#include "base/threading/simple_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
class TestThread : public SimpleThread { … };
template <class Func>
void RunTest(const Func& func) { … }
}
TEST(WorkIdProviderTest, StartsAtZero) { … }
TEST(WorkIdProviderTest, Increment) { … }
TEST(WorkIdProviderTest, SkipsZeroOnOverflow) { … }
}