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

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

Issue 13322003: Update the remaining references to sys_string_conversions.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 <memory> 5 #include <memory>
6 #include <string> 6 #include <string>
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "base/win/scoped_handle.h" 10 #include "base/win/scoped_handle.h"
11 #include "base/win/scoped_process_information.h" 11 #include "base/win/scoped_process_information.h"
12 #include "base/win/windows_version.h" 12 #include "base/win/windows_version.h"
13 #include "sandbox/win/src/sandbox.h" 13 #include "sandbox/win/src/sandbox.h"
14 #include "sandbox/win/src/sandbox_factory.h"
14 #include "sandbox/win/src/sandbox_policy.h" 15 #include "sandbox/win/src/sandbox_policy.h"
15 #include "sandbox/win/src/sandbox_factory.h"
16 #include "sandbox/win/tests/common/controller.h" 16 #include "sandbox/win/tests/common/controller.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace { 19 namespace {
20 20
21 // While the shell API provides better calls than this home brew function 21 // While the shell API provides better calls than this home brew function
22 // we use GetSystemWindowsDirectoryW which does not query the registry so 22 // we use GetSystemWindowsDirectoryW which does not query the registry so
23 // it is safe to use after revert. 23 // it is safe to use after revert.
24 string16 MakeFullPathToSystem32(const wchar_t* name) { 24 string16 MakeFullPathToSystem32(const wchar_t* name) {
25 wchar_t windows_path[MAX_PATH] = {0}; 25 wchar_t windows_path[MAX_PATH] = {0};
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 ASSERT_TRUE(!exe_path.empty()); 375 ASSERT_TRUE(!exe_path.empty());
376 EXPECT_TRUE(runner.AddRule(TargetPolicy::SUBSYS_PROCESS, 376 EXPECT_TRUE(runner.AddRule(TargetPolicy::SUBSYS_PROCESS,
377 TargetPolicy::PROCESS_ALL_EXEC, 377 TargetPolicy::PROCESS_ALL_EXEC,
378 exe_path.c_str())); 378 exe_path.c_str()));
379 379
380 EXPECT_EQ(SBOX_TEST_SUCCEEDED, 380 EXPECT_EQ(SBOX_TEST_SUCCEEDED,
381 runner.RunTest(L"Process_GetChildProcessToken findstr.exe")); 381 runner.RunTest(L"Process_GetChildProcessToken findstr.exe"));
382 } 382 }
383 383
384 } // namespace sandbox 384 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698