Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: ppapi/tests/test_test_internals.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/tests/test_tcp_socket_private.cc ('k') | ppapi/tests/test_trace_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/tests/test_tcp_socket_private.cc ('k') | ppapi/tests/test_trace_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698