diff options
author | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-08 17:32:25 +0000 |
---|---|---|
committer | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-08 17:32:25 +0000 |
commit | 698e4e24491c552eab312f57b19c2b967fcc4bc2 (patch) | |
tree | b105228d25a832bd0219cb46195cbf3495dafd4e /ppapi/tests/test_utils.h | |
parent | 8eaaa149fb593aa3e25ec3228f2b7c0418d74e61 (diff) | |
download | chromium_src-698e4e24491c552eab312f57b19c2b967fcc4bc2.zip chromium_src-698e4e24491c552eab312f57b19c2b967fcc4bc2.tar.gz chromium_src-698e4e24491c552eab312f57b19c2b967fcc4bc2.tar.bz2 |
Move the PP_ALLOW_THIS_IN_INITIALIZER_LIST macro from test_utils.h to
pp_macros.idl.
Now, PP_ALLOW_THIS_IN_INITIALIZER_LIST macro is provided for not only tests
but also C++ api implementation in NaCl.
BUG=87310
TEST=ui_tests
Review URL: http://codereview.chromium.org/8885012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_utils.h')
-rw-r--r-- | ppapi/tests/test_utils.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ppapi/tests/test_utils.h b/ppapi/tests/test_utils.h index c2d9207..8cfd2dd 100644 --- a/ppapi/tests/test_utils.h +++ b/ppapi/tests/test_utils.h @@ -79,20 +79,4 @@ class TestCompletionCallback { #define PPAPI_POSIX 1 #endif -// This is roughly copied from base/compiler_specific.h, and makes it possible -// to pass 'this' in a constructor initializer list, when you really mean it. -// -// Example usage: -// Foo::Foo(MyInstance* instance) -// : ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {} -#if defined(COMPILER_MSVC) -#define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) \ - __pragma(warning(push)) \ - __pragma(warning(disable:4355)) \ - code \ - __pragma(warning(pop)) -#else -#define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) code -#endif - #endif // PPAPI_TESTS_TEST_UTILS_H_ |