| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package tests | 5 package tests |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "sync" | 9 "sync" |
| 10 "testing" | 10 "testing" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 }() | 44 }() |
| 45 if err := proxy.WithoutParameterAndEmptyResponse(); err != nil { | 45 if err := proxy.WithoutParameterAndEmptyResponse(); err != nil { |
| 46 t.Fatalf("error sending request: %v", err) | 46 t.Fatalf("error sending request: %v", err) |
| 47 } | 47 } |
| 48 v.mu.Lock() | 48 v.mu.Lock() |
| 49 if !v.methodCalled { | 49 if !v.methodCalled { |
| 50 t.Fatal("proxy returned from the call before the stub se
nt the response") | 50 t.Fatal("proxy returned from the call before the stub se
nt the response") |
| 51 } | 51 } |
| 52 v.mu.Unlock() | 52 v.mu.Unlock() |
| 53 proxy.Close_Proxy() |
| 54 stub.Close() |
| 53 } | 55 } |
| 54 } | 56 } |
| OLD | NEW |