test(driverpb): drop proto getter round-trip tautology

This commit is contained in:
pj committed 2026-06-01 21:56:08 +05:30
1 parent 93f1e94098
commit 19950dffe1
1 file changed
-22
-22
View File
@@ -44,25 +44,3 @@ func TestDriverServiceDescriptor(t *testing.T) {
} }
} }
} }
func TestMessageFields(t *testing.T) {
lr := &LaunchRequest{BundleId: "com.example", ClearState: true}
if lr.GetBundleId() != "com.example" || !lr.GetClearState() {
t.Fatalf("LaunchRequest field round-trip failed: %+v", lr)
}
tap := &Point{X: 10, Y: 20}
if tap.GetX() != 10 || tap.GetY() != 20 {
t.Fatalf("Point field round-trip failed: %+v", tap)
}
img := &Image{Png: []byte{1, 2, 3}, Width: 100, Height: 200}
if len(img.GetPng()) != 3 || img.GetWidth() != 100 || img.GetHeight() != 200 {
t.Fatalf("Image field round-trip failed: %+v", img)
}
hs := &HealthStatus{Ready: true, Version: "0.0.1", Platform: "android"}
if !hs.GetReady() || hs.GetVersion() != "0.0.1" || hs.GetPlatform() != "android" {
t.Fatalf("HealthStatus field round-trip failed: %+v", hs)
}
}