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

Side by Side Diff: ppapi/tests/test_websocket.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 5 years 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_websocket.h ('k') | ppapi/tests/test_x509_certificate_private.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 (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 #include "ppapi/tests/test_websocket.h" 5 #include "ppapi/tests/test_websocket.h"
6 6
7 #include <stddef.h>
7 #include <stdio.h> 8 #include <stdio.h>
8 #include <string.h> 9 #include <string.h>
9 10
10 #include <algorithm> 11 #include <algorithm>
11 #include <memory> 12 #include <memory>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "ppapi/c/pp_bool.h" 16 #include "ppapi/c/pp_bool.h"
16 #include "ppapi/c/pp_completion_callback.h" 17 #include "ppapi/c/pp_completion_callback.h"
(...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 size_t last_event = events_on_closed - 1; 1610 size_t last_event = events_on_closed - 1;
1610 for (uint32_t i = 1; i < last_event; ++i) { 1611 for (uint32_t i = 1; i < last_event; ++i) {
1611 ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[i].event_type); 1612 ASSERT_EQ(WebSocketEvent::EVENT_MESSAGE, events[i].event_type);
1612 ASSERT_TRUE(AreEqualWithString(events[i].var.pp_var(), message)); 1613 ASSERT_TRUE(AreEqualWithString(events[i].var.pp_var(), message));
1613 } 1614 }
1614 ASSERT_EQ(WebSocketEvent::EVENT_CLOSE, events[last_event].event_type); 1615 ASSERT_EQ(WebSocketEvent::EVENT_CLOSE, events[last_event].event_type);
1615 ASSERT_TRUE(events[last_event].was_clean); 1616 ASSERT_TRUE(events[last_event].was_clean);
1616 1617
1617 PASS(); 1618 PASS();
1618 } 1619 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_websocket.h ('k') | ppapi/tests/test_x509_certificate_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698