Index: third_party/WebKit/Source/core/testing/SequenceTest.idl |
diff --git a/third_party/WebKit/Source/core/testing/SequenceTest.idl b/third_party/WebKit/Source/core/testing/SequenceTest.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c0d5e5dd8f508ef2e9b7d417aba2c9004588ba2d |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/testing/SequenceTest.idl |
@@ -0,0 +1,24 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+enum FoodEnum { |
+ "Bread", |
+ "Spaghetti", |
+ "Sushi" |
+}; |
+ |
+interface SequenceTest { |
+ // The identity functions just return what they have received in |arg|, to |
+ // test converting both to and from V8. |
+ sequence<sequence<ByteString>> identityByteStringSequenceSequence(sequence<sequence<ByteString>> arg); |
+ sequence<double> identityDoubleSequence(sequence<double> arg); |
+ sequence<FoodEnum> identityFoodEnumSequence(sequence<FoodEnum> arg); |
+ sequence<long> identityLongSequence(sequence<long> arg); |
+ sequence<octet>? identityOctetSequenceOrNull(sequence<octet>? arg); |
+ |
+ sequence<Element> getElementSequence(); |
+ void setElementSequence(sequence<Element> arg); |
+ |
+ bool unionReceivedSequence((double or sequence<double>) arg); |
+}; |