#include "services/network/upload_progress_tracker.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "net/base/upload_progress.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
class TestingUploadProgressTracker : public UploadProgressTracker { … };
}
class UploadProgressTrackerTest : public ::testing::Test { … };
TEST_F(UploadProgressTrackerTest, NoACK) { … }
TEST_F(UploadProgressTrackerTest, NoUpload) { … }
TEST_F(UploadProgressTrackerTest, NoProgress) { … }
TEST_F(UploadProgressTrackerTest, Finished) { … }
TEST_F(UploadProgressTrackerTest, Progress) { … }
TEST_F(UploadProgressTrackerTest, TimePassed) { … }
TEST_F(UploadProgressTrackerTest, Rewound) { … }
TEST_F(UploadProgressTrackerTest, Completed) { … }
}