OLD | NEW |
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 <objbase.h> | 5 #include <objbase.h> |
| 6 #include <stddef.h> |
6 | 7 |
7 #include <string> | 8 #include <string> |
8 | 9 |
9 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "base/test/scoped_path_override.h" | 18 #include "base/test/scoped_path_override.h" |
17 #include "base/test/test_shortcut_win.h" | 19 #include "base/test/test_shortcut_win.h" |
18 #include "base/version.h" | 20 #include "base/version.h" |
19 #include "base/win/shortcut.h" | 21 #include "base/win/shortcut.h" |
20 #include "chrome/installer/setup/install.h" | 22 #include "chrome/installer/setup/install.h" |
21 #include "chrome/installer/setup/install_worker.h" | 23 #include "chrome/installer/setup/install_worker.h" |
22 #include "chrome/installer/setup/setup_constants.h" | 24 #include "chrome/installer/setup/setup_constants.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 installer::EscapeXmlAttributeValueInSingleQuotes(&val); | 467 installer::EscapeXmlAttributeValueInSingleQuotes(&val); |
466 ASSERT_STREQ(kExpectedEscapedVal, val.c_str()); | 468 ASSERT_STREQ(kExpectedEscapedVal, val.c_str()); |
467 } | 469 } |
468 | 470 |
469 TEST(EscapeXmlAttributeValueTest, DontEscapeNormalValue) { | 471 TEST(EscapeXmlAttributeValueTest, DontEscapeNormalValue) { |
470 base::string16 val(L"Google Chrome"); | 472 base::string16 val(L"Google Chrome"); |
471 static const wchar_t kExpectedEscapedVal[] = L"Google Chrome"; | 473 static const wchar_t kExpectedEscapedVal[] = L"Google Chrome"; |
472 installer::EscapeXmlAttributeValueInSingleQuotes(&val); | 474 installer::EscapeXmlAttributeValueInSingleQuotes(&val); |
473 ASSERT_STREQ(kExpectedEscapedVal, val.c_str()); | 475 ASSERT_STREQ(kExpectedEscapedVal, val.c_str()); |
474 } | 476 } |
OLD | NEW |