#include "components/services/quarantine/quarantine.h"
#include <iterator>
#include <string>
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#if BUILDFLAG(IS_WIN)
#include "base/win/scoped_com_initializer.h"
#endif
namespace quarantine {
namespace {
const char kTestData[] = …;
const char kInternetURL[] = …;
const char kInternetReferrerURL[] = …;
const char kTestGUID[] = …;
void CheckQuarantineResult(QuarantineFileResult result,
QuarantineFileResult expected_result) { … }
class QuarantineTest : public testing::Test { … };
}
TEST_F(QuarantineTest, FileCanBeOpenedForReadAfterAnnotation) { … }
TEST_F(QuarantineTest, FileCanBeAnnotatedWithNoGUID) { … }
}