OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_TESTS_TEST_CASE_H_ | 5 #ifndef PPAPI_TESTS_TEST_CASE_H_ |
6 #define PPAPI_TESTS_TEST_CASE_H_ | 6 #define PPAPI_TESTS_TEST_CASE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <cmath> | 10 #include <cmath> |
9 #include <limits> | 11 #include <limits> |
10 #include <map> | 12 #include <map> |
11 #include <set> | 13 #include <set> |
12 #include <sstream> | 14 #include <sstream> |
13 #include <string> | 15 #include <string> |
14 | 16 |
15 #include "ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
16 #include "ppapi/c/pp_time.h" | 18 #include "ppapi/c/pp_time.h" |
17 #include "ppapi/c/private/ppb_testing_private.h" | 19 #include "ppapi/c/private/ppb_testing_private.h" |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 #define ASSERT_SUBTEST_SUCCESS(function) \ | 736 #define ASSERT_SUBTEST_SUCCESS(function) \ |
735 do { \ | 737 do { \ |
736 std::string result = (function); \ | 738 std::string result = (function); \ |
737 if (!result.empty()) \ | 739 if (!result.empty()) \ |
738 return TestCase::MakeFailureMessage(__FILE__, __LINE__, result.c_str()); \ | 740 return TestCase::MakeFailureMessage(__FILE__, __LINE__, result.c_str()); \ |
739 } while (false) | 741 } while (false) |
740 | 742 |
741 #define PASS() return std::string() | 743 #define PASS() return std::string() |
742 | 744 |
743 #endif // PPAPI_TESTS_TEST_CASE_H_ | 745 #endif // PPAPI_TESTS_TEST_CASE_H_ |
OLD | NEW |