Index: ppapi/tests/blink_deprecated_test_plugin.cc |
diff --git a/ppapi/tests/blink_deprecated_test_plugin.cc b/ppapi/tests/blink_deprecated_test_plugin.cc |
index b11a37df4334e913beba0ef39947a713664de45b..93fc86531ec89ea602b4e97c276a645759372bda 100644 |
--- a/ppapi/tests/blink_deprecated_test_plugin.cc |
+++ b/ppapi/tests/blink_deprecated_test_plugin.cc |
@@ -54,6 +54,18 @@ class InstanceSO : public pp::deprecated::ScriptableObject { |
return ScriptableObject::Call(method_name, args, exception); |
} |
+ bool HasProperty(const pp::Var& name, pp::Var* exception) { |
+ if (name.AsString() == "testprop") |
+ return true; |
+ return false; |
+ } |
+ |
+ pp::Var GetProperty(const pp::Var& name, pp::Var* exception) { |
+ if (!(name.AsString() == "testprop")) |
+ *exception = pp::Var("Property does not exist on ScriptableObject"); |
+ return pp::Var(); |
+ } |
+ |
private: |
using MethodMap = |
std::map<std::string, |