| Index: chrome/browser/policy/policy_path_parser_unittest.cc
|
| diff --git a/chrome/browser/policy/policy_path_parser_unittest.cc b/chrome/browser/policy/policy_path_parser_unittest.cc
|
| index 2c379e41da5b65a014460218128db59c8255425e..faac5b501b539e74f4f3b08ef630f83811422c4b 100644
|
| --- a/chrome/browser/policy/policy_path_parser_unittest.cc
|
| +++ b/chrome/browser/policy/policy_path_parser_unittest.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 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.
|
|
|
| @@ -33,6 +33,16 @@ TEST_F(PolicyPathParserTests, AllPlatformVariables) {
|
| path_parser::ExpandPathVariables(unknown_vars);
|
| ASSERT_EQ(unknown_vars_result, unknown_vars);
|
|
|
| + // Trim quotes around, but not inside paths. Test against bug 80211.
|
| + FilePath::StringType no_quotes(FILE_PATH_LITERAL("//$C/\"a\"/$path"));
|
| + FilePath::StringType single_quotes(FILE_PATH_LITERAL("'//$C/\"a\"/$path'"));
|
| + FilePath::StringType double_quotes(FILE_PATH_LITERAL("\"//$C/\"a\"/$path\""));
|
| + FilePath::StringType quotes_result =
|
| + path_parser::ExpandPathVariables(single_quotes);
|
| + ASSERT_EQ(quotes_result, no_quotes);
|
| + quotes_result = path_parser::ExpandPathVariables(double_quotes);
|
| + ASSERT_EQ(quotes_result, no_quotes);
|
| +
|
| // Both should have been substituted.
|
| FilePath::StringType vars(FILE_PATH_LITERAL("${user_name}${machine_name}"));
|
| FilePath::StringType vars_result = path_parser::ExpandPathVariables(vars);
|
|
|