blob: 9221c58038f1f3854899af1d62d85044a6967034 [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(DataRole, GetDataRole, (), (override));
MOCK_METHOD(bool, CanEnterDPAltMode, (), (override));
MOCK_METHOD(ModeEntryResult, CanEnterTBTCompatibilityMode, (), (override));
MOCK_METHOD(ModeEntryResult, CanEnterUSB4, (), (override));
MOCK_METHOD(bool, IsPartnerDiscoveryComplete, (), (override));
MOCK_METHOD(bool, IsCableDiscoveryComplete, (), (override));
};
} // namespace typecd
#endif // TYPECD_MOCK_PORT_H_