Bug 1330536 part 6. Add tests for code generation for CanOOM members. r=smaug

This commit is contained in:
Boris Zbarsky 2017-01-17 23:52:14 -05:00
Родитель 1cf89e40b6
Коммит 0fea28b3da
4 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -936,6 +936,13 @@ public:
void SetThrowingGetterAttr(bool arg);
bool ThrowingSetterAttr() const;
void SetThrowingSetterAttr(bool arg, ErrorResult& aRv);
void CanOOMMethod(OOMReporter& aRv);
bool GetCanOOMAttr(OOMReporter& aRv) const;
void SetCanOOMAttr(bool arg, OOMReporter& aRv);
bool GetCanOOMGetterAttr(OOMReporter& aRv) const;
void SetCanOOMGetterAttr(bool arg);
bool CanOOMSetterAttr() const;
void SetCanOOMSetterAttr(bool arg, OOMReporter& aRv);
void NeedsSubjectPrincipalMethod(nsIPrincipal&);
bool NeedsSubjectPrincipalAttr(nsIPrincipal&);
void SetNeedsSubjectPrincipalAttr(bool, nsIPrincipal&);

Просмотреть файл

@ -946,6 +946,10 @@ interface TestInterface {
[Throws] attribute boolean throwingAttr;
[GetterThrows] attribute boolean throwingGetterAttr;
[SetterThrows] attribute boolean throwingSetterAttr;
[CanOOM] void canOOMMethod();
[CanOOM] attribute boolean canOOMAttr;
[GetterCanOOM] attribute boolean canOOMGetterAttr;
[SetterCanOOM] attribute boolean canOOMSetterAttr;
[NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();
[NeedsSubjectPrincipal] attribute boolean needsSubjectPrincipalAttr;
[NeedsCallerType] void needsCallerTypeMethod();

Просмотреть файл

@ -776,6 +776,10 @@ interface TestExampleInterface {
[Throws] attribute boolean throwingAttr;
[GetterThrows] attribute boolean throwingGetterAttr;
[SetterThrows] attribute boolean throwingSetterAttr;
[CanOOM] void canOOMMethod();
[CanOOM] attribute boolean canOOMAttr;
[GetterCanOOM] attribute boolean canOOMGetterAttr;
[SetterCanOOM] attribute boolean canOOMSetterAttr;
[NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();
[NeedsSubjectPrincipal] attribute boolean needsSubjectPrincipalAttr;
[NeedsCallerType] void needsCallerTypeMethod();

Просмотреть файл

@ -797,6 +797,10 @@ interface TestJSImplInterface {
[Throws] attribute boolean throwingAttr;
[GetterThrows] attribute boolean throwingGetterAttr;
[SetterThrows] attribute boolean throwingSetterAttr;
[CanOOM] void canOOMMethod();
[CanOOM] attribute boolean canOOMAttr;
[GetterCanOOM] attribute boolean canOOMGetterAttr;
[SetterCanOOM] attribute boolean canOOMSetterAttr;
// NeedsSubjectPrincipal not supported on JS-implemented things for
// now, because we always pass in the caller principal anyway.
// [NeedsSubjectPrincipal] void needsSubjectPrincipalMethod();