#include "components/upload_list/text_log_upload_list.h"
#include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kTestUploadTime[] = …;
constexpr char kTestUploadId[] = …;
constexpr char kTestLocalID[] = …;
constexpr char kTestCaptureTime[] = …;
constexpr char kTestSource[] = …;
constexpr char kTestPathHash[] = …;
constexpr char kTestWhitespaces[] = …;
class TextLogUploadListTest : public testing::Test { … };
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadId) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadId_JSON) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdLocalId) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdLocalId_JSON) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdCaptureTime) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdCaptureTime_JSON) { … }
TEST_F(TextLogUploadListTest, ParseLocalIdCaptureTime) { … }
TEST_F(TextLogUploadListTest, ParseLocalIdCaptureTime_JSON) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdLocalIdCaptureTime) { … }
TEST_F(TextLogUploadListTest, ParseUploadTimeUploadIdLocalIdCaptureTime_JSON) { … }
TEST_F(TextLogUploadListTest, ParseMultipleEntries) { … }
TEST_F(TextLogUploadListTest, ParseMultipleEntries_JSON) { … }
TEST_F(TextLogUploadListTest, ParseWithMultipleDelimiters) { … }
TEST_F(TextLogUploadListTest, ParseWithMultipleDelimiters_JSON) { … }
TEST_F(TextLogUploadListTest, ParseWithState) { … }
TEST_F(TextLogUploadListTest, ParseWithState_JSON) { … }
TEST_F(TextLogUploadListTest, ParseWithSource_JSON) { … }
TEST_F(TextLogUploadListTest, ParseWithPathHash_JSON) { … }
TEST_F(TextLogUploadListTest, ParseHybridFormat) { … }
TEST_F(TextLogUploadListTest, SkipInvalidEntry_JSON) { … }
TEST_F(TextLogUploadListTest, SkipBlankOrCorruptedEntry) { … }
TEST_F(TextLogUploadListTest, ClearUsingUploadTime) { … }
TEST_F(TextLogUploadListTest, ClearUsingUploadTime_JSON) { … }
TEST_F(TextLogUploadListTest, ClearUsingCaptureTime) { … }
TEST_F(TextLogUploadListTest, ClearUsingCaptureTime_JSON) { … }
TEST_F(TextLogUploadListTest, ClearingAllDataDeletesFile) { … }
TEST_F(TextLogUploadListTest, ClearingAllDataDeletesFile_JSON) { … }
TEST_F(TextLogUploadListTest, SimultaneousAccess) { … }
TEST_F(TextLogUploadListTest, SimultaneousAccess_JSON) { … }
}