Add ICU message format support
[chromium-blink-merge.git] / sandbox / win / tests / validation_tests / commands.h
blobf9b61990ed9e34b125fddec669da293504b73aaf
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.
5 #ifndef SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__
6 #define SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__
8 #include <windows.h>
10 #include "base/strings/string16.h"
12 namespace sandbox {
14 // Checks if window is a real window. Returns a SboxTestResult.
15 int TestValidWindow(HWND window);
17 // Tries to open the process_id. Returns a SboxTestResult.
18 int TestOpenProcess(DWORD process_id, DWORD access_mask);
20 // Tries to open thread_id. Returns a SboxTestResult.
21 int TestOpenThread(DWORD thread_id);
23 // Tries to open path for read access. Returns a SboxTestResult.
24 int TestOpenReadFile(const base::string16& path);
26 // Tries to open path for write access. Returns a SboxTestResult.
27 int TestOpenWriteFile(const base::string16& path);
29 // Tries to open a registry key.
30 int TestOpenKey(HKEY base_key, base::string16 subkey);
32 // Tries to open the workstation's input desktop as long as the
33 // current desktop is not the interactive one. Returns a SboxTestResult.
34 int TestOpenInputDesktop();
36 // Tries to switch the interactive desktop. Returns a SboxTestResult.
37 int TestSwitchDesktop();
39 // Tries to open the alternate desktop. Returns a SboxTestResult.
40 int TestOpenAlternateDesktop(wchar_t *desktop_name);
42 // Tries to enumerate desktops on the alternate windowstation.
43 // Returns a SboxTestResult.
44 int TestEnumAlternateWinsta();
46 } // namespace sandbox
48 #endif // SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__