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

Side by Side Diff: sandbox/win/sandbox_poc/pocdll/network.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/win/sandbox_poc/pocdll/invasive.cc ('k') | sandbox/win/sandbox_poc/pocdll/pocdll.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "sandbox/sandbox_poc/pocdll/exports.h" 5 #include "sandbox/win/sandbox_poc/pocdll/exports.h"
6 #include "sandbox/sandbox_poc/pocdll/utils.h" 6 #include "sandbox/win/sandbox_poc/pocdll/utils.h"
7 7
8 // This file contains the tests used to verify the security of the network. 8 // This file contains the tests used to verify the security of the network.
9 9
10 void POCDLL_API TestNetworkListen(HANDLE log) { 10 void POCDLL_API TestNetworkListen(HANDLE log) {
11 HandleToFile handle2file; 11 HandleToFile handle2file;
12 FILE *output = handle2file.Translate(log, "w"); 12 FILE *output = handle2file.Translate(log, "w");
13 #if DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK 13 #if DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK
14 // Initialize Winsock 14 // Initialize Winsock
15 WSADATA wsa_data; 15 WSADATA wsa_data;
16 int result = ::WSAStartup(MAKEWORD(2, 2), &wsa_data); 16 int result = ::WSAStartup(MAKEWORD(2, 2), &wsa_data);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ::WSAGetLastError()); 57 ::WSAGetLastError());
58 } 58 }
59 59
60 ::WSACleanup(); 60 ::WSACleanup();
61 return; 61 return;
62 #else // DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK 62 #else // DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK
63 // Just print out that this test is not running. 63 // Just print out that this test is not running.
64 fprintf(output, "[ERROR] No network tests.\r\n"); 64 fprintf(output, "[ERROR] No network tests.\r\n");
65 #endif // DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK 65 #endif // DONT_WANT_INTERCEPTIONS_JUST_WANT_NETWORK
66 } 66 }
OLDNEW
« no previous file with comments | « sandbox/win/sandbox_poc/pocdll/invasive.cc ('k') | sandbox/win/sandbox_poc/pocdll/pocdll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698