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

Side by Side Diff: sandbox/win/src/ipc_ping_test.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/src/internal_types.h ('k') | sandbox/win/src/ipc_tags.h » ('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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "sandbox/src/sandbox.h" 6 #include "sandbox/win/src/sandbox.h"
7 #include "sandbox/src/sandbox_factory.h" 7 #include "sandbox/win/src/sandbox_factory.h"
8 #include "sandbox/src/target_services.h" 8 #include "sandbox/win/src/target_services.h"
9 #include "sandbox/tests/common/controller.h" 9 #include "sandbox/win/tests/common/controller.h"
10 10
11 namespace sandbox { 11 namespace sandbox {
12 12
13 // Tests that the IPC is working by issuing a special IPC that is not exposed 13 // Tests that the IPC is working by issuing a special IPC that is not exposed
14 // in the public API. 14 // in the public API.
15 SBOX_TESTS_COMMAND int IPC_Ping(int argc, wchar_t **argv) { 15 SBOX_TESTS_COMMAND int IPC_Ping(int argc, wchar_t **argv) {
16 if (argc != 1) 16 if (argc != 1)
17 return SBOX_TEST_FAILED; 17 return SBOX_TEST_FAILED;
18 18
19 TargetServices* ts = SandboxFactory::GetTargetServices(); 19 TargetServices* ts = SandboxFactory::GetTargetServices();
(...skipping 29 matching lines...) Expand all
49 49
50 TEST(IPCTest, IPCPingTestWithOutput) { 50 TEST(IPCTest, IPCPingTestWithOutput) {
51 TestRunner runner; 51 TestRunner runner;
52 runner.SetTimeout(2000); 52 runner.SetTimeout(2000);
53 runner.SetTestState(EVERY_STATE); 53 runner.SetTestState(EVERY_STATE);
54 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"IPC_Ping 2")); 54 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"IPC_Ping 2"));
55 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"IPC_Ping 2")); 55 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"IPC_Ping 2"));
56 } 56 }
57 57
58 } // namespace sandbox 58 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/internal_types.h ('k') | sandbox/win/src/ipc_tags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698