#include "chrome/browser/diagnostics/recon_diagnostics.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/json/json_string_value_serializer.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/system/sys_info.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/browser/diagnostics/diagnostics_test.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "components/bookmarks/common/bookmark_constants.h"
#include "components/version_info/version_info.h"
#if BUILDFLAG(IS_WIN)
#include "chrome/installer/util/install_util.h"
#endif
namespace diagnostics {
namespace {
const int64_t kOneKilobyte = …;
const int64_t kOneMegabyte = …;
class InstallTypeTest;
InstallTypeTest* g_install_type = …;
class DiskSpaceTest : public DiagnosticsTest { … };
class InstallTypeTest : public DiagnosticsTest { … };
class JSONTest : public DiagnosticsTest { … };
class OperatingSystemTest : public DiagnosticsTest { … };
struct TestPathInfo { … };
const TestPathInfo kPathsToTest[] = …;
class PathTest : public DiagnosticsTest { … };
class VersionTest : public DiagnosticsTest { … };
}
std::unique_ptr<DiagnosticsTest> MakeDiskSpaceTest() { … }
std::unique_ptr<DiagnosticsTest> MakeInstallTypeTest() { … }
std::unique_ptr<DiagnosticsTest> MakeLocalOrSyncableBookmarksTest() { … }
std::unique_ptr<DiagnosticsTest> MakeAccountBookmarksTest() { … }
std::unique_ptr<DiagnosticsTest> MakeLocalStateTest() { … }
std::unique_ptr<DiagnosticsTest> MakePreferencesTest() { … }
std::unique_ptr<DiagnosticsTest> MakeOperatingSystemTest() { … }
std::unique_ptr<DiagnosticsTest> MakeDictonaryDirTest() { … }
std::unique_ptr<DiagnosticsTest> MakeLocalStateFileTest() { … }
std::unique_ptr<DiagnosticsTest> MakeResourcesFileTest() { … }
std::unique_ptr<DiagnosticsTest> MakeUserDirTest() { … }
std::unique_ptr<DiagnosticsTest> MakeVersionTest() { … }
}