| 65 | } |
| 66 | |
| 67 | bool Equals(const Device& other) const override { |
| 68 | if (other.type_name() != kMyDeviceTypeName) { |
| 69 | return false; |
| 70 | } |
| 71 | return checked_cast<const MyDevice&>(other).value_ == value_; |
| 72 | } |
| 73 | |
| 74 | DeviceAllocationType device_type() const override { return kMyDeviceType; } |
| 75 |