| Index: third_party/grpc/test/core/end2end/tests/cancel_test_helpers.h
|
| diff --git a/third_party/WebKit/Source/modules/mediasource/HTMLVideoElementMediaSource.idl b/third_party/grpc/test/core/end2end/tests/cancel_test_helpers.h
|
| similarity index 68%
|
| copy from third_party/WebKit/Source/modules/mediasource/HTMLVideoElementMediaSource.idl
|
| copy to third_party/grpc/test/core/end2end/tests/cancel_test_helpers.h
|
| index 57de64f8938a456476bd60ecc43c75d07f9a90a4..f8fafae597c433214ca48d38022a10ce758e2cd1 100644
|
| --- a/third_party/WebKit/Source/modules/mediasource/HTMLVideoElementMediaSource.idl
|
| +++ b/third_party/grpc/test/core/end2end/tests/cancel_test_helpers.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2013 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2015, Google Inc.
|
| + * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,10 +28,28 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + *
|
| */
|
|
|
| -[
|
| - RuntimeEnabled=MediaSourceExperimental,
|
| -] partial interface HTMLVideoElement {
|
| - VideoPlaybackQuality getVideoPlaybackQuality();
|
| +#ifndef GRPC_TEST_CORE_END2END_TESTS_CANCEL_TEST_HELPERS_H
|
| +#define GRPC_TEST_CORE_END2END_TESTS_CANCEL_TEST_HELPERS_H
|
| +
|
| +typedef struct {
|
| + const char *name;
|
| + grpc_call_error (*initiate_cancel)(grpc_call *call, void *reserved);
|
| + grpc_status_code expect_status;
|
| + const char *expect_details;
|
| +} cancellation_mode;
|
| +
|
| +static grpc_call_error wait_for_deadline(grpc_call *call, void *reserved) {
|
| + (void)reserved;
|
| + return GRPC_CALL_OK;
|
| +}
|
| +
|
| +static const cancellation_mode cancellation_modes[] = {
|
| + {"cancel", grpc_call_cancel, GRPC_STATUS_CANCELLED, "Cancelled"},
|
| + {"deadline", wait_for_deadline, GRPC_STATUS_DEADLINE_EXCEEDED,
|
| + "Deadline Exceeded"},
|
| };
|
| +
|
| +#endif /* GRPC_TEST_CORE_END2END_TESTS_CANCEL_TEST_HELPERS_H */
|
|
|