#include "chrome/test/chromedriver/chrome/browser_info.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <string_view>
#include "base/json/json_reader.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "chrome/test/chromedriver/constants/version.h"
BrowserInfo::BrowserInfo() = default;
BrowserInfo::~BrowserInfo() = default;
BrowserInfo::BrowserInfo(const BrowserInfo&) = default;
BrowserInfo& BrowserInfo::operator=(const BrowserInfo&) = default;
Status BrowserInfo::FillFromBrowserVersionResponse(
const base::Value::Dict& response) { … }
Status BrowserInfo::ParseBrowserInfo(const std::string& data) { … }
Status BrowserInfo::ParseBrowserInfo(const std::string& data,
BrowserInfo* browser_info) { … }
Status BrowserInfo::ParseBrowserString(bool has_android_package,
const std::string& browser_string,
BrowserInfo* browser_info) { … }
Status BrowserInfo::ParseBrowserVersionString(
const std::string& browser_version,
int* major_version,
int* build_no) { … }
Status BrowserInfo::ParseBlinkVersionString(const std::string& blink_version,
int* blink_revision) { … }
bool BrowserInfo::IsGitHash(const std::string& revision) { … }