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

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

Issue 2183623004: Add IDLDictionaryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix multi-level inheritance bug Created 4 years, 5 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
Index: third_party/WebKit/Source/core/testing/DictionaryTest.cpp
diff --git a/third_party/WebKit/Source/core/testing/DictionaryTest.cpp b/third_party/WebKit/Source/core/testing/DictionaryTest.cpp
index 4d993539978657c7db5500070392be714e0c2f7f..92412a0143ac07d394ccb25854d4ad4a1fface19 100644
--- a/third_party/WebKit/Source/core/testing/DictionaryTest.cpp
+++ b/third_party/WebKit/Source/core/testing/DictionaryTest.cpp
@@ -7,6 +7,7 @@
#include "bindings/core/v8/V8ObjectBuilder.h"
#include "core/testing/InternalDictionary.h"
#include "core/testing/InternalDictionaryDerived.h"
+#include "core/testing/InternalDictionaryDerivedDerived.h"
namespace blink {
@@ -148,6 +149,19 @@ void DictionaryTest::getDerived(InternalDictionaryDerived& result)
result.setRequiredBooleanMember(m_requiredBooleanMember);
}
+void DictionaryTest::setDerivedDerived(const InternalDictionaryDerivedDerived& derived)
+{
+ setDerived(derived);
+ if (derived.hasDerivedDerivedStringMember())
+ m_derivedDerivedStringMember = derived.derivedDerivedStringMember();
+}
+
+void DictionaryTest::getDerivedDerived(InternalDictionaryDerivedDerived& result)
+{
+ getDerived(result);
+ result.setDerivedDerivedStringMember(m_derivedDerivedStringMember);
+}
+
String DictionaryTest::stringFromIterable(ExecutionContext* executionContext, Dictionary iterable, ExceptionState& exceptionState) const
{
StringBuilder result;

Powered by Google App Engine
This is Rietveld 408576698