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

Side by Side Diff: sandbox/win/tests/integration_tests/integration_tests_test.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 4 years, 12 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
« no previous file with comments | « sandbox/win/tests/common/test_utils.cc ('k') | sandbox/win/tests/validation_tests/commands.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 // Some tests for the framework itself. 5 // Some tests for the framework itself.
6 6
7 #include <stddef.h>
8
9 #include "sandbox/win/src/sandbox.h"
10 #include "sandbox/win/src/sandbox_factory.h"
11 #include "sandbox/win/src/target_services.h"
12 #include "sandbox/win/tests/common/controller.h"
7 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
8 #include "sandbox/win/src/sandbox.h"
9 #include "sandbox/win/src/target_services.h"
10 #include "sandbox/win/src/sandbox_factory.h"
11 #include "sandbox/win/tests/common/controller.h"
12 14
13 namespace sandbox { 15 namespace sandbox {
14 16
15 // Returns the current process state. 17 // Returns the current process state.
16 SBOX_TESTS_COMMAND int IntegrationTestsTest_state(int argc, wchar_t **argv) { 18 SBOX_TESTS_COMMAND int IntegrationTestsTest_state(int argc, wchar_t **argv) {
17 if (!SandboxFactory::GetTargetServices()->GetState()->InitCalled()) 19 if (!SandboxFactory::GetTargetServices()->GetState()->InitCalled())
18 return BEFORE_INIT; 20 return BEFORE_INIT;
19 21
20 if (!SandboxFactory::GetTargetServices()->GetState()->RevertedToSelf()) 22 if (!SandboxFactory::GetTargetServices()->GetState()->RevertedToSelf())
21 return BEFORE_REVERT; 23 return BEFORE_REVERT;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // running inside an outter job. 299 // running inside an outter job.
298 TEST(IntegrationTestsTest, RunJoblessChildFromInsideJob) { 300 TEST(IntegrationTestsTest, RunJoblessChildFromInsideJob) {
299 TestRunner runner; 301 TestRunner runner;
300 runner.SetUnsandboxed(true); 302 runner.SetUnsandboxed(true);
301 runner.SetTimeout(2000); 303 runner.SetTimeout(2000);
302 ASSERT_EQ(SBOX_TEST_SUCCEEDED, 304 ASSERT_EQ(SBOX_TEST_SUCCEEDED,
303 runner.RunTest(L"IntegrationTestsTest_job none")); 305 runner.RunTest(L"IntegrationTestsTest_job none"));
304 } 306 }
305 307
306 } // namespace sandbox 308 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/tests/common/test_utils.cc ('k') | sandbox/win/tests/validation_tests/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698