Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: client/flagpb/unmarshal_test.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/flagpb/unmarshal_test.go
diff --git a/client/flagpb/unmarshal_test.go b/client/flagpb/unmarshal_test.go
index dddba1431fb1310f1b419fce110958255de6584a..c5819982b222da3e6e5f698aad4216d46c9656d4 100644
--- a/client/flagpb/unmarshal_test.go
+++ b/client/flagpb/unmarshal_test.go
@@ -9,7 +9,9 @@ import (
"testing"
"github.com/golang/protobuf/proto"
- "github.com/luci/luci-go/common/proto/google/descriptor"
+ "google.golang.org/genproto/protobuf"
+
+ "github.com/luci/luci-go/common/proto/google/descutil"
. "github.com/luci/luci-go/common/testing/assertions"
. "github.com/smartystreets/goconvey/convey"
@@ -29,7 +31,7 @@ func TestUnmarshal(t *testing.T) {
resolver := NewResolver(&desc)
resolveMsg := func(name string) *descriptor.DescriptorProto {
- _, obj, _ := desc.Resolve("flagpb." + name)
+ _, obj, _ := descutil.Resolve(&desc, "flagpb."+name)
So(obj, ShouldNotBeNil)
return obj.(*descriptor.DescriptorProto)
}

Powered by Google App Engine
This is Rietveld 408576698