| 1349 | const char* type_name() const override { return kMyDeviceTypeName; } |
| 1350 | std::string ToString() const override { return kMyDeviceTypeName; } |
| 1351 | bool Equals(const Device& other) const override { |
| 1352 | if (other.type_name() != kMyDeviceTypeName || other.device_type() != device_type()) { |
| 1353 | return false; |
| 1354 | } |
| 1355 | return checked_cast<const MyDevice&>(other).value_ == value_; |
| 1356 | } |
| 1357 | DeviceAllocationType device_type() const override { |
| 1358 | return static_cast<DeviceAllocationType>(kMyDeviceType); |
| 1359 | } |
nothing calls this directly
no test coverage detected