js/src/gdb/tests/test-prettyprinters.cpp

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 #include "gdb-tests.h"
     3 typedef int A;
     4 typedef A B;
     6 class C { };
     7 class D { };
     8 typedef C C_;
     9 typedef D D_;
    10 class E: C, D { };
    11 typedef E E_;
    12 class F: C_, D_ { };
    13 class G { };
    14 class H: F, G { };
    16 FRAGMENT(prettyprinters, implemented_types) {
    17   int i;
    18   A a;
    19   B b;
    20   C c;
    21   C_ c_;
    22   E e;
    23   E_ e_;
    24   F f;
    25   H h;
    27   breakpoint();
    29   (void) i;
    30   (void) a;
    31   (void) b;
    32   (void) c;
    33   (void) c_;
    34   (void) e;
    35   (void) e_;
    36   (void) f;
    37   (void) h;
    38 }

mercurial