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

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

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified per Adam's comments Created 8 years, 6 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
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_broker.h" 5 #include "ppapi/tests/test_broker.h"
6 6
7 #if defined(_MSC_VER) 7 #if defined(_MSC_VER)
8 #define OS_WIN 1 8 #define OS_WIN 1
9 #include <windows.h> 9 #include <windows.h>
10 #else 10 #else
11 #define OS_POSIX 1 11 #define OS_POSIX 1
12 #include <errno.h> 12 #include <errno.h>
13 #endif 13 #endif
14 14
15 #include <cstdio> 15 #include <cstdio>
16 #include <cstring> 16 #include <cstring>
17 #include <fstream> 17 #include <fstream>
18 #include <limits> 18 #include <limits>
19 #include <unistd.h>
19 20
20 #include "ppapi/c/pp_errors.h" 21 #include "ppapi/c/pp_errors.h"
21 #include "ppapi/c/trusted/ppp_broker.h" 22 #include "ppapi/c/trusted/ppp_broker.h"
22 #include "ppapi/c/trusted/ppb_broker_trusted.h" 23 #include "ppapi/c/trusted/ppb_broker_trusted.h"
23 #include "ppapi/tests/test_utils.h" 24 #include "ppapi/tests/test_utils.h"
24 #include "ppapi/tests/testing_instance.h" 25 #include "ppapi/tests/testing_instance.h"
25 26
26 REGISTER_TEST_CASE(Broker); 27 REGISTER_TEST_CASE(Broker);
27 28
28 namespace { 29 namespace {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 280
280 PlatformFile file = IntToPlatformFile(handle); 281 PlatformFile file = IntToPlatformFile(handle);
281 ASSERT_TRUE(VerifyMessage(file, sizeof(kHelloMessage), kHelloMessage)); 282 ASSERT_TRUE(VerifyMessage(file, sizeof(kHelloMessage), kHelloMessage));
282 ASSERT_TRUE(VerifyMessage(file, sizeof(kBrokerUnsandboxed), 283 ASSERT_TRUE(VerifyMessage(file, sizeof(kBrokerUnsandboxed),
283 kBrokerUnsandboxed)); 284 kBrokerUnsandboxed));
284 285
285 ASSERT_TRUE(ClosePlatformFile(file)); 286 ASSERT_TRUE(ClosePlatformFile(file));
286 287
287 PASS(); 288 PASS();
288 } 289 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698