#include "chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h"
#include "base/values.h"
#include "chrome/test/chromedriver/chrome/client_hints.h"
#include "chrome/test/chromedriver/chrome/device_metrics.h"
#include "chrome/test/chromedriver/chrome/recorder_devtools_client.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
Eq;
Optional;
Pointee;
const int mock_chrome_version = …;
void AssertDeviceMetricsCommand(const Command& command,
const DeviceMetrics& device_metrics) { … }
void AssertBrandsAndVersions(
std::optional<std::vector<BrandVersion>> expected_list,
const base::Value::List* actual_list) { … }
void AssertClientHintsCommand(const Command& command,
const ClientHints& expected_client_hints,
const std::string& expected_user_agent) { … }
}
TEST(MobileEmulationOverrideManager, SendsCommandWithTouchOnConnect) { … }
TEST(MobileEmulationOverrideManager, SendsCommandWithoutTouchOnConnect) { … }
TEST(MobileEmulationOverrideManager, SendsCommandOnNavigation) { … }
TEST(MobileEmulationOverrideManager, SendsClientHintsExplicitUA) { … }
TEST(MobileEmulationOverrideManager, SendsClientHintsTemplatedUA) { … }
TEST(MobileEmulationOverrideManager, SendsClientHintsInferredMobileUA) { … }
TEST(MobileEmulationOverrideManager, SendsClientHintsInferredNonMobileUA) { … }
TEST(MobileEmulationOverrideManager, SendsClientHintsWithoutDeviceMetricsUA) { … }