OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ppapi/tests/test_test_internals.h" | 5 #include "ppapi/tests/test_test_internals.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 namespace { | 11 namespace { |
10 | 12 |
11 std::string CheckEqual(const std::string& expected, const std::string& actual) { | 13 std::string CheckEqual(const std::string& expected, const std::string& actual) { |
12 if (expected != actual) { | 14 if (expected != actual) { |
13 return std::string("Expected : \"") + expected + "\", got : \"" + actual + | 15 return std::string("Expected : \"") + expected + "\", got : \"" + actual + |
14 "\""; | 16 "\""; |
15 } | 17 } |
16 PASS(); | 18 PASS(); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 CallCounter call_counter1; | 270 CallCounter call_counter1; |
269 CallCounter call_counter2; | 271 CallCounter call_counter2; |
270 ASSERT_DOUBLE_EQ(call_counter1.return_zero_as_double(), | 272 ASSERT_DOUBLE_EQ(call_counter1.return_zero_as_double(), |
271 call_counter2.return_zero_as_double()); | 273 call_counter2.return_zero_as_double()); |
272 assert(call_counter1.num_calls() == 1); | 274 assert(call_counter1.num_calls() == 1); |
273 assert(call_counter2.num_calls() == 1); | 275 assert(call_counter2.num_calls() == 1); |
274 } | 276 } |
275 PASS(); | 277 PASS(); |
276 } | 278 } |
277 | 279 |
OLD | NEW |