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

Side by Side Diff: sandbox/tests/validation_tests/commands.h

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree 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/tests/unit_tests/unit_tests.cc ('k') | sandbox/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__
6 #define SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__
7
8 namespace sandbox {
9
10 // Checks if window is a real window. Returns a SboxTestResult.
11 int TestValidWindow(HWND window);
12
13 // Tries to open the process_id. Returns a SboxTestResult.
14 int TestOpenProcess(DWORD process_id, DWORD access_mask);
15
16 // Tries to open thread_id. Returns a SboxTestResult.
17 int TestOpenThread(DWORD thread_id);
18
19 // Tries to open path for read access. Returns a SboxTestResult.
20 int TestOpenReadFile(const std::wstring& path);
21
22 // Tries to open path for write access. Returns a SboxTestResult.
23 int TestOpenWriteFile(const std::wstring& path);
24
25 // Tries to open a registry key.
26 int TestOpenKey(HKEY base_key, std::wstring subkey);
27
28 // Tries to open the workstation's input desktop as long as the
29 // current desktop is not the interactive one. Returns a SboxTestResult.
30 int TestOpenInputDesktop();
31
32 // Tries to switch the interactive desktop. Returns a SboxTestResult.
33 int TestSwitchDesktop();
34
35 } // namespace sandbox
36
37 #endif // SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__
OLDNEW
« no previous file with comments | « sandbox/tests/unit_tests/unit_tests.cc ('k') | sandbox/tests/validation_tests/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698