Chromium Code Reviews| Index: Source/core/testing/DictionaryTest.h |
| diff --git a/Source/core/testing/DictionaryTest.h b/Source/core/testing/DictionaryTest.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4175124ce52da0395f8192b07ce978e36bce021d |
| --- /dev/null |
| +++ b/Source/core/testing/DictionaryTest.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2014 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 DictionaryTest_h |
| +#define DictionaryTest_h |
| + |
| +#include "bindings/core/v8/Nullable.h" |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +class TestingDictionary; |
| + |
| +class DictionaryTest : public GarbageCollectedFinalized<DictionaryTest>, public ScriptWrappable { |
| +public: |
| + static DictionaryTest* create() |
| + { |
| + return new DictionaryTest(); |
| + } |
| + virtual ~DictionaryTest(); |
| + |
| + void set(const TestingDictionary*); |
| + TestingDictionary* get(); |
| + |
| + void trace(Visitor*); |
| + |
| +private: |
| + DictionaryTest(); |
| + |
| + Nullable<unsigned> m_longMember; |
| + String m_stringMember; |
| + Nullable<bool> m_booleanOrNullMember; |
|
haraken
2014/08/26 04:00:40
I'm a bit getting confused with what DictionaryTes
bashi
2014/08/27 05:06:32
No. I used Nullable<T> here just for convenience.
|
| + Vector<String> m_stringSequenceMember; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // DictionaryTest_h |