Index: third_party/WebKit/Source/core/testing/SequenceTest.cpp |
diff --git a/third_party/WebKit/Source/core/testing/SequenceTest.cpp b/third_party/WebKit/Source/core/testing/SequenceTest.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..791644da730c208366ede2174f98f833162506c7 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/testing/SequenceTest.cpp |
@@ -0,0 +1,54 @@ |
+// 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. |
+ |
+#include "SequenceTest.h" |
+ |
+namespace blink { |
+ |
+SequenceTest::SequenceTest() {} |
+ |
+SequenceTest::~SequenceTest() {} |
+ |
+Vector<Vector<String>> SequenceTest::identityByteStringSequenceSequence( |
+ const Vector<Vector<String>>& arg) const { |
+ return arg; |
+} |
+ |
+Vector<double> SequenceTest::identityDoubleSequence( |
+ const Vector<double>& arg) const { |
+ return arg; |
+} |
+ |
+Vector<String> SequenceTest::identityFoodEnumSequence( |
+ const Vector<String>& arg) const { |
+ return arg; |
+} |
+ |
+Vector<int32_t> SequenceTest::identityLongSequence( |
+ const Vector<int32_t>& arg) const { |
+ return arg; |
+} |
+ |
+Nullable<Vector<uint8_t>> SequenceTest::identityOctetSequenceOrNull( |
+ const Nullable<Vector<uint8_t>>& arg) const { |
+ return arg; |
+} |
+ |
+HeapVector<Member<Element>> SequenceTest::getElementSequence() const { |
+ return m_elementSequence; |
+} |
+ |
+void SequenceTest::setElementSequence(const HeapVector<Member<Element>>& arg) { |
+ m_elementSequence = arg; |
+} |
+ |
+bool SequenceTest::unionReceivedSequence(const DoubleOrDoubleSequence& arg) { |
+ return arg.isDoubleSequence(); |
+} |
+ |
+DEFINE_TRACE(SequenceTest) { |
+ visitor->Trace(m_elementSequence); |
+} |
+ |
+} // namespace blink |