OLD | NEW |
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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" |
9 #include "sandbox/win/tests/common/controller.h" | 9 #include "sandbox/win/tests/common/controller.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace sandbox { | 12 namespace sandbox { |
13 | 13 |
14 SBOX_TESTS_COMMAND int HandleInheritanceTests_PrintToStdout(int argc, | 14 SBOX_TESTS_COMMAND int HandleInheritanceTests_PrintToStdout(int argc, |
15 wchar_t** argv) { | 15 wchar_t** argv) { |
16 printf("Example output to stdout\n"); | 16 printf("Example output to stdout\n"); |
17 return SBOX_TEST_SUCCEEDED; | 17 return SBOX_TEST_SUCCEEDED; |
(...skipping 27 matching lines...) Expand all Loading... |
45 if (base::win::GetVersion() >= base::win::VERSION_VISTA) { | 45 if (base::win::GetVersion() >= base::win::VERSION_VISTA) { |
46 EXPECT_EQ("Example output to stdout\r\n", data); | 46 EXPECT_EQ("Example output to stdout\r\n", data); |
47 } else { | 47 } else { |
48 EXPECT_EQ("", data); | 48 EXPECT_EQ("", data); |
49 } | 49 } |
50 | 50 |
51 EXPECT_TRUE(::DeleteFile(temp_file_name)); | 51 EXPECT_TRUE(::DeleteFile(temp_file_name)); |
52 } | 52 } |
53 | 53 |
54 } | 54 } |
OLD | NEW |