OLD | NEW |
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 #include "sandbox/src/policy_engine_params.h" | 5 #include "sandbox/win/src/policy_engine_params.h" |
6 #include "sandbox/src/policy_engine_processor.h" | 6 #include "sandbox/win/src/policy_engine_processor.h" |
7 #include "sandbox/src/policy_low_level.h" | 7 #include "sandbox/win/src/policy_low_level.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 #define POLPARAMS_BEGIN(x) sandbox::ParameterSet x[] = { | 10 #define POLPARAMS_BEGIN(x) sandbox::ParameterSet x[] = { |
11 #define POLPARAM(p) sandbox::ParamPickerMake(p), | 11 #define POLPARAM(p) sandbox::ParamPickerMake(p), |
12 #define POLPARAMS_END } | 12 #define POLPARAMS_END } |
13 | 13 |
14 namespace sandbox { | 14 namespace sandbox { |
15 | 15 |
16 bool SetupNtdllImports(); | 16 bool SetupNtdllImports(); |
17 | 17 |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 result = eval_None.Evaluate(kShortEval, params, _countof(params)); | 566 result = eval_None.Evaluate(kShortEval, params, _countof(params)); |
567 EXPECT_EQ(NO_POLICY_MATCH, result); | 567 EXPECT_EQ(NO_POLICY_MATCH, result); |
568 result = eval_OpenFile.Evaluate(kShortEval, params, _countof(params)); | 568 result = eval_OpenFile.Evaluate(kShortEval, params, _countof(params)); |
569 EXPECT_EQ(POLICY_MATCH, result); | 569 EXPECT_EQ(POLICY_MATCH, result); |
570 EXPECT_EQ(FAKE_SUCCESS, eval_OpenFile.GetAction()); | 570 EXPECT_EQ(FAKE_SUCCESS, eval_OpenFile.GetAction()); |
571 | 571 |
572 delete [] reinterpret_cast<char*>(policy); | 572 delete [] reinterpret_cast<char*>(policy); |
573 } | 573 } |
574 | 574 |
575 } // namespace sandbox | 575 } // namespace sandbox |
OLD | NEW |