Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: Source/core/testing/DictionaryTest.cpp

Issue 590443002: IDL: object type support for IDL dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/DictionaryTest.h ('k') | Source/core/testing/InternalDictionary.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/DictionaryTest.cpp
diff --git a/Source/core/testing/DictionaryTest.cpp b/Source/core/testing/DictionaryTest.cpp
index ce563720b2dd58c85b45dc73f7aba07821028bea..90f8204beee7c88c7a93a2ceed067c3cfcdcf9ad 100644
--- a/Source/core/testing/DictionaryTest.cpp
+++ b/Source/core/testing/DictionaryTest.cpp
@@ -46,6 +46,8 @@ void DictionaryTest::set(const InternalDictionary& testingDictionary)
m_elementMember = testingDictionary.elementMember();
if (testingDictionary.hasElementOrNullMember())
m_elementOrNullMember = testingDictionary.elementOrNullMember();
+ m_objectMember = testingDictionary.objectMember();
+ m_objectOrNullMemberWithDefault = testingDictionary.objectOrNullMemberWithDefault();
}
InternalDictionary* DictionaryTest::get()
@@ -75,6 +77,8 @@ InternalDictionary* DictionaryTest::get()
result->setElementMember(m_elementMember);
if (m_elementOrNullMember)
result->setElementOrNullMember(m_elementOrNullMember);
+ result->setObjectMember(m_objectMember);
+ result->setObjectOrNullMemberWithDefault(m_objectOrNullMemberWithDefault);
return result;
}
@@ -95,6 +99,8 @@ void DictionaryTest::reset()
m_enumOrNullMember = String();
m_elementMember = nullptr;
m_elementOrNullMember = nullptr;
+ m_objectMember = ScriptValue();
+ m_objectOrNullMemberWithDefault = ScriptValue();
}
void DictionaryTest::trace(Visitor* visitor)
« no previous file with comments | « Source/core/testing/DictionaryTest.h ('k') | Source/core/testing/InternalDictionary.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698