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

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

Issue 561633003: IDL: Enumerations support in dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove parens 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 192b25056c38dd0a7d439a6bbd32b8b8d0255c2a..e7acae193cda3578eca271c32fe04ab60fbbaf90 100644
--- a/Source/core/testing/DictionaryTest.cpp
+++ b/Source/core/testing/DictionaryTest.cpp
@@ -39,6 +39,9 @@ void DictionaryTest::set(const InternalDictionary* testingDictionary)
m_stringSequenceMember = testingDictionary->stringSequenceMember();
if (testingDictionary->hasStringSequenceOrNullMember())
m_stringSequenceOrNullMember = testingDictionary->stringSequenceOrNullMember();
+ m_enumMember = testingDictionary->enumMember();
+ m_enumMemberWithDefault = testingDictionary->enumMemberWithDefault();
+ m_enumOrNullMember = testingDictionary->enumOrNullMember();
if (testingDictionary->hasElementMember())
m_elementMember = testingDictionary->elementMember();
if (testingDictionary->hasElementOrNullMember())
@@ -65,6 +68,9 @@ InternalDictionary* DictionaryTest::get()
result->setStringSequenceMember(m_stringSequenceMember.get());
if (m_stringSequenceOrNullMember)
result->setStringSequenceOrNullMember(m_stringSequenceOrNullMember.get());
+ result->setEnumMember(m_enumMember);
+ result->setEnumMemberWithDefault(m_enumMemberWithDefault);
+ result->setEnumOrNullMember(m_enumOrNullMember);
if (m_elementMember)
result->setElementMember(m_elementMember);
if (m_elementOrNullMember)
@@ -84,6 +90,9 @@ void DictionaryTest::reset()
m_stringMemberWithDefault = String("Should not be returned");
m_stringSequenceMember = Nullable<Vector<String> >();
m_stringSequenceOrNullMember = Nullable<Vector<String> >();
+ m_enumMember = String();
+ m_enumMemberWithDefault = String();
+ m_enumOrNullMember = String();
m_elementMember = nullptr;
m_elementOrNullMember = nullptr;
}
« 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