omaha: fix go vet complaints

omaha/protocol_test.go:83: ExampleOmaha_NewResponse refers to unknown identifier: Omaha
omaha/protocol_test.go:134: ExampleOmaha_NewRequest refers to unknown identifier: Omaha
This commit is contained in:
Nick Owens 2015-11-16 12:53:45 -08:00 committed by Michael Marineau
parent 8650026537
commit 6ab36bd0dc

View file

@ -76,7 +76,7 @@ func TestOmahaRequestUpdateCheck(t *testing.T) {
}
}
func ExampleOmaha_NewResponse() {
func ExampleNewResponse() {
response := NewResponse("unit-test")
app := response.AddApp("{52F1B9BC-D31A-4D86-9276-CBC256AADF9A}")
app.Status = "ok"
@ -124,7 +124,7 @@ func ExampleOmaha_NewResponse() {
// </response>
}
func ExampleOmaha_NewRequest() {
func ExampleNewRequest() {
request := NewRequest("Indy", "Chrome OS", "ForcedUpdate_x86_64", "")
app := request.AddApp("{27BD862E-8AE8-4886-A055-F7F1A6460627}", "1.0.0.0")
app.AddUpdateCheck()