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 "io/ioutil" | 9 "io/ioutil" |
10 "os" | 10 "os" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 param0 := map[string]uint8{ | 288 param0 := map[string]uint8{ |
289 string([]byte{0, 1, 2, 3, 4}): 1, | 289 string([]byte{0, 1, 2, 3, 4}): 1, |
290 string([]byte{5, 6, 7, 8, 9}): 2, | 290 string([]byte{5, 6, 7, 8, 9}): 2, |
291 } | 291 } |
292 if !reflect.DeepEqual(inParam0, param0) { | 292 if !reflect.DeepEqual(inParam0, param0) { |
293 return fmt.Errorf("unexpected value (Method10, inParam0): expect
ed %v, got %v", param0, inParam0) | 293 return fmt.Errorf("unexpected value (Method10, inParam0): expect
ed %v, got %v", param0, inParam0) |
294 } | 294 } |
295 return v.Proxy.Method10(inParam0) | 295 return v.Proxy.Method10(inParam0) |
296 } | 296 } |
297 | 297 |
| 298 func (v *conformanceValidator) Method11(inParam0 test.StructG) error { |
| 299 return nil |
| 300 } |
| 301 |
298 func TestConformanceValidation(t *testing.T) { | 302 func TestConformanceValidation(t *testing.T) { |
299 tests := getMatchingTests(listTestFiles(), "conformance_") | 303 tests := getMatchingTests(listTestFiles(), "conformance_") |
300 waiter := bindings.GetAsyncWaiter() | 304 waiter := bindings.GetAsyncWaiter() |
301 | 305 |
302 h := NewMockMessagePipeHandle() | 306 h := NewMockMessagePipeHandle() |
303 proxyIn, proxyOut := h, h | 307 proxyIn, proxyOut := h, h |
304 interfacePointer := test.ConformanceTestInterfacePointer{pipeOwner(proxy
In)} | 308 interfacePointer := test.ConformanceTestInterfacePointer{pipeOwner(proxy
In)} |
305 impl := &conformanceValidator{false, test.NewConformanceTestInterfacePro
xy(interfacePointer, waiter)} | 309 impl := &conformanceValidator{false, test.NewConformanceTestInterfacePro
xy(interfacePointer, waiter)} |
306 | 310 |
307 h = NewMockMessagePipeHandle() | 311 h = NewMockMessagePipeHandle() |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 388 |
385 func TestIntegrationResponseValidation(t *testing.T) { | 389 func TestIntegrationResponseValidation(t *testing.T) { |
386 tests := getMatchingTests(listTestFiles(), "integration_intf_resp") | 390 tests := getMatchingTests(listTestFiles(), "integration_intf_resp") |
387 runIntegrationTest(t, tests, false, true) | 391 runIntegrationTest(t, tests, false, true) |
388 } | 392 } |
389 | 393 |
390 func TestIntegrationHeaderValidation(t *testing.T) { | 394 func TestIntegrationHeaderValidation(t *testing.T) { |
391 tests := getMatchingTests(listTestFiles(), "integration_msghdr") | 395 tests := getMatchingTests(listTestFiles(), "integration_msghdr") |
392 runIntegrationTest(t, tests, true, true) | 396 runIntegrationTest(t, tests, true, true) |
393 } | 397 } |
OLD | NEW |