| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stddef.h> |
| 6 |
| 5 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "build/build_config.h" |
| 6 #include "chrome/browser/policy/policy_path_parser.h" | 9 #include "chrome/browser/policy/policy_path_parser.h" |
| 7 | 10 |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 12 |
| 10 namespace policy { | 13 namespace policy { |
| 11 | 14 |
| 12 class PolicyPathParserTests : public testing::Test { | 15 class PolicyPathParserTests : public testing::Test { |
| 13 protected: | 16 protected: |
| 14 void CheckForSubstitution(base::FilePath::StringType test_string, | 17 void CheckForSubstitution(base::FilePath::StringType test_string, |
| 15 base::FilePath::StringType var_name) { | 18 base::FilePath::StringType var_name) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 FILE_PATH_LITERAL("${windows}")); | 117 FILE_PATH_LITERAL("${windows}")); |
| 115 CheckForSubstitution(FILE_PATH_LITERAL("//$C/${client_name}"), | 118 CheckForSubstitution(FILE_PATH_LITERAL("//$C/${client_name}"), |
| 116 FILE_PATH_LITERAL("${client_name}")); | 119 FILE_PATH_LITERAL("${client_name}")); |
| 117 CheckForSubstitution(FILE_PATH_LITERAL("//$C/${session_name}"), | 120 CheckForSubstitution(FILE_PATH_LITERAL("//$C/${session_name}"), |
| 118 FILE_PATH_LITERAL("${session_name}")); | 121 FILE_PATH_LITERAL("${session_name}")); |
| 119 } | 122 } |
| 120 | 123 |
| 121 #endif // OS_WIN | 124 #endif // OS_WIN |
| 122 | 125 |
| 123 } // namespace policy | 126 } // namespace policy |
| OLD | NEW |