| 54 | const char* type_name() const override { return kMyDeviceTypeName; } |
| 55 | |
| 56 | std::string ToString() const override { |
| 57 | switch (value_) { |
| 58 | case kMyDeviceAllowCopy: |
| 59 | return "MyDevice[noview]"; |
| 60 | case kMyDeviceAllowView: |
| 61 | return "MyDevice[nocopy]"; |
| 62 | default: |
| 63 | return "MyDevice[nocopy][noview]"; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | bool Equals(const Device& other) const override { |
| 68 | if (other.type_name() != kMyDeviceTypeName) { |
nothing calls this directly
no outgoing calls
no test coverage detected