blob: 4a78d79ea0e8ae88a7a128222db0e24bb10ee849 [file] [log] [blame]
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_TESTING_SEQUENCE_TEST_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_TESTING_SEQUENCE_TEST_H_
#include "base/optional.h"
#include "third_party/blink/renderer/bindings/core/v8/double_or_double_sequence.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
class SequenceTest final : public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static SequenceTest* create() { return new SequenceTest; }
~SequenceTest() override;
Vector<Vector<String>> identityByteStringSequenceSequence(
const Vector<Vector<String>>& arg) const;
Vector<double> identityDoubleSequence(const Vector<double>& arg) const;
Vector<String> identityFoodEnumSequence(const Vector<String>& arg) const;
Vector<int32_t> identityLongSequence(const Vector<int32_t>& arg) const;
base::Optional<Vector<uint8_t>> identityOctetSequenceOrNull(
const base::Optional<Vector<uint8_t>>& arg) const;
HeapVector<Member<Element>> getElementSequence() const;
void setElementSequence(const HeapVector<Member<Element>>& arg);
bool unionReceivedSequence(const DoubleOrDoubleSequence& arg);
void Trace(blink::Visitor*) override;
private:
SequenceTest();
HeapVector<Member<Element>> element_sequence_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_TESTING_SEQUENCE_TEST_H_