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

Unified Diff: chrome/test/nacl_security_tests/commands_posix.h

Issue 7831053: Move NaCl tests out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/nacl/nacl_ui_test.cc ('k') | chrome/test/nacl_security_tests/commands_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/nacl_security_tests/commands_posix.h
===================================================================
--- chrome/test/nacl_security_tests/commands_posix.h (revision 100205)
+++ chrome/test/nacl_security_tests/commands_posix.h (working copy)
@@ -1,54 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_TEST_NACL_SECURITY_TESTS_COMMANDS_POSIX_H_
-#define CHROME_TEST_NACL_SECURITY_TESTS_COMMANDS_POSIX_H_
-#pragma once
-
-// TODO(jvoung): factor out the SboxTestResult from
-// sandbox/tests/common/controller.h
-// to make it OS independent.
-
-namespace sandbox {
-
-#define SEVERITY_INFO_FLAGS 0x40000000
-#define SEVERITY_ERROR_FLAGS 0xC0000000
-#define CUSTOMER_CODE 0x20000000
-#define SBOX_TESTS_FACILITY 0x05B10000
-
-enum SboxTestResult {
- SBOX_TEST_FIRST_RESULT = 8998,
- SBOX_TEST_SUCCEEDED,
- SBOX_TEST_PING_OK,
- SBOX_TEST_FIRST_INFO = SBOX_TEST_FIRST_RESULT | SEVERITY_INFO_FLAGS,
- SBOX_TEST_DENIED, // Access was denied.
- SBOX_TEST_NOT_FOUND, // The resource was not found.
- SBOX_TEST_FIRST_ERROR = SBOX_TEST_FIRST_RESULT | SEVERITY_ERROR_FLAGS,
- SBOX_TEST_INVALID_PARAMETER,
- SBOX_TEST_FAILED_TO_RUN_TEST,
- SBOX_TEST_FAILED_TO_EXECUTE_COMMAND,
- SBOX_TEST_TIMED_OUT,
- SBOX_TEST_FAILED,
- SBOX_TEST_LAST_RESULT
-};
-
-// Sandbox access tests for Mac and Linux
-// (mimic'ing "sandbox/tests/validation_tests/commands.h")
-
-SboxTestResult TestOpenReadFile(const char* path);
-
-SboxTestResult TestOpenWriteFile(const char* path);
-
-SboxTestResult TestCreateProcess(const char* path);
-
-SboxTestResult TestConnect(const char* url);
-
-// Dummy test that returns SBOX_TEST_SUCCEEDED
-// (so it fails, because everything should be denied).
-SboxTestResult TestDummyFails();
-
-} // namespace sandbox
-
-#endif // CHROME_TEST_NACL_SECURITY_TESTS_COMMANDS_POSIX_H_
-
« no previous file with comments | « chrome/test/nacl/nacl_ui_test.cc ('k') | chrome/test/nacl_security_tests/commands_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698