#include "chrome/browser/upgrade_detector/get_installed_version.h"
#include <stdio.h>
#include <string>
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/version_info/version_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"
_;
namespace {
constexpr char kChildModeSwitch[] = …;
enum class ChildMode { … };
ChildMode GetChildMode() { … }
}
MULTIPROCESS_TEST_MAIN(GetProductVersionInChildProc) { … }
class GetInstalledVersionLinuxTest : public ::testing::Test { … };
TEST_F(GetInstalledVersionLinuxTest, NoVersion) { … }
TEST_F(GetInstalledVersionLinuxTest, ProcessError) { … }
TEST_F(GetInstalledVersionLinuxTest, WithMonkey) { … }
#if defined(NDEBUG)
#define MAYBE_WithVersion …
#else
#define MAYBE_WithVersion …
#endif
TEST_F(GetInstalledVersionLinuxTest, MAYBE_WithVersion) { … }