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

Side by Side Diff: sandbox/win/src/policy_engine_unittest.cc

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/win/src/policy_engine_processor.cc ('k') | sandbox/win/src/policy_low_level.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #define POLPARAMS_BEGIN(x) sandbox::ParameterSet x[] = { 9 #define POLPARAMS_BEGIN(x) sandbox::ParameterSet x[] = {
10 #define POLPARAM(p) sandbox::ParamPickerMake(p), 10 #define POLPARAM(p) sandbox::ParamPickerMake(p),
11 #define POLPARAMS_END } 11 #define POLPARAMS_END }
12 12
13 namespace sandbox { 13 namespace sandbox {
14 14
15 bool SetupNtdllImports(); 15 bool SetupNtdllImports();
16 16
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Changing creation_mode such that evaluation should match rule #2. 93 // Changing creation_mode such that evaluation should match rule #2.
94 creation_mode = OPEN_ALWAYS; 94 creation_mode = OPEN_ALWAYS;
95 pr = pol_ev.Evaluate(kShortEval, eval_params, _countof(eval_params)); 95 pr = pol_ev.Evaluate(kShortEval, eval_params, _countof(eval_params));
96 EXPECT_EQ(POLICY_MATCH, pr); 96 EXPECT_EQ(POLICY_MATCH, pr);
97 EXPECT_EQ(FAKE_ACCESS_DENIED, pol_ev.GetAction()); 97 EXPECT_EQ(FAKE_ACCESS_DENIED, pol_ev.GetAction());
98 98
99 delete [] reinterpret_cast<char*>(policy); 99 delete [] reinterpret_cast<char*>(policy);
100 } 100 }
101 101
102 } // namespace sandbox 102 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_engine_processor.cc ('k') | sandbox/win/src/policy_low_level.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698