blob: b18b1897c1960f85ab83f02c829dceac846127f6 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TYPECD_MOCK_PORT_H_
#define TYPECD_MOCK_PORT_H_
#include <string>
#include <gmock/gmock.h>
#include "typecd/port.h"
namespace typecd {
// A mock implementation of the Port class which can be used to test various
// scenarios of PortManager::RunModeEntry().
class MockPort : public Port {
public:
MockPort(base::FilePath path, int port_num) : Port(path, port_num) {}
MOCK_METHOD(std::string, GetDataRole, (), (override));
MOCK_METHOD(bool, CanEnterDPAltMode, (), (override));
MOCK_METHOD(bool, CanEnterTBTCompatibilityMode, (), (override));
MOCK_METHOD(bool, CanEnterUSB4, (), (override));
MOCK_METHOD(bool, IsPartnerDiscoveryComplete, (), (override));
MOCK_METHOD(bool, IsCableDiscoveryComplete, (), (override));
};
} // namespace typecd
#endif // TYPECD_MOCK_PORT_H_