#include "components/sync/engine/cycle/commit_quota.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
class CommitQuotaTest : public ::testing::Test { … };
TEST_F(CommitQuotaTest, NoTokensAvailableWhenDepleted) { … }
TEST_F(CommitQuotaTest, TokensRefill) { … }
TEST_F(CommitQuotaTest, TokensCannotGetBelowZero) { … }
TEST_F(CommitQuotaTest, RefillPostponedWhenConsumingAtZero) { … }
TEST_F(CommitQuotaTest, TokensRefillUpToInitialTokens) { … }
TEST_F(CommitQuotaTest, TokensStayAtInitialTokens) { … }
}
}