| Index: mojom/generators/go/templates/interfaces_test.go
|
| diff --git a/mojom/generators/go/templates/interfaces_test.go b/mojom/generators/go/templates/interfaces_test.go
|
| index 684749a4e1e0732574f188bae4b18327214e2026..aa2893e4f4d1c7bacf588bddcaf7ca7739e985a3 100644
|
| --- a/mojom/generators/go/templates/interfaces_test.go
|
| +++ b/mojom/generators/go/templates/interfaces_test.go
|
| @@ -64,3 +64,28 @@ const someInterface_SecondMethod_Ordinal uint32 = 21
|
|
|
| check(t, expected, "MethodOrdinals", i)
|
| }
|
| +
|
| +func TestServiceName(t *testing.T) {
|
| + expected := `const someInterface_Name string = "SomeService"
|
| +
|
| +func (r *SomeInterface_Request) Name() string {
|
| + return someInterface_Name
|
| +}
|
| +
|
| +func (p *SomeInterface_Pointer) Name() string {
|
| + return someInterface_Name
|
| +}
|
| +
|
| +func (f *SomeInterface_ServiceFactory) Name() string {
|
| + return someInterface_Name
|
| +}`
|
| +
|
| + serviceName := "SomeService"
|
| + i := translator.InterfaceTemplate{
|
| + Name: "SomeInterface",
|
| + PrivateName: "someInterface",
|
| + ServiceName: &serviceName,
|
| + }
|
| +
|
| + check(t, expected, "ServiceDecl", i)
|
| +}
|
|
|