| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 "sandbox/win/sandbox_poc/pocdll/exports.h" | 5 #include "sandbox/win/sandbox_poc/pocdll/exports.h" |
| 6 #include "sandbox/win/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; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |