Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / sandbox / win / tests / validation_tests / commands.h
blob9b797a511d904281a7ec8561f7aa95d34d2e9c25
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 namespace sandbox {
10 // Checks if window is a real window. Returns a SboxTestResult.
11 int TestValidWindow(HWND window);
13 // Tries to open the process_id. Returns a SboxTestResult.
14 int TestOpenProcess(DWORD process_id, DWORD access_mask);
16 // Tries to open thread_id. Returns a SboxTestResult.
17 int TestOpenThread(DWORD thread_id);
19 // Tries to open path for read access. Returns a SboxTestResult.
20 int TestOpenReadFile(const std::wstring& path);
22 // Tries to open path for write access. Returns a SboxTestResult.
23 int TestOpenWriteFile(const std::wstring& path);
25 // Tries to open a registry key.
26 int TestOpenKey(HKEY base_key, std::wstring subkey);
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();
32 // Tries to switch the interactive desktop. Returns a SboxTestResult.
33 int TestSwitchDesktop();
35 } // namespace sandbox
37 #endif // SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__