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 "chrome/browser/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 env.Set("LANGUAGE", "en_AU.UTF-8"); | 637 env.Set("LANGUAGE", "en_AU.UTF-8"); |
638 | 638 |
639 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); i++) { | 639 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); i++) { |
640 SCOPED_TRACE(i); | 640 SCOPED_TRACE(i); |
641 EXPECT_EQ( | 641 EXPECT_EQ( |
642 test_cases[i].expected_output, | 642 test_cases[i].expected_output, |
643 ShellIntegrationLinux::GetDesktopFileContents( | 643 ShellIntegrationLinux::GetDesktopFileContents( |
644 test_cases[i].template_contents, | 644 test_cases[i].template_contents, |
645 web_app::GenerateApplicationNameFromURL(GURL(test_cases[i].url)), | 645 web_app::GenerateApplicationNameFromURL(GURL(test_cases[i].url)), |
646 GURL(test_cases[i].url), | 646 GURL(test_cases[i].url), |
647 "", | 647 std::string(), |
648 base::FilePath(), | 648 base::FilePath(), |
649 ASCIIToUTF16(test_cases[i].title), | 649 ASCIIToUTF16(test_cases[i].title), |
650 test_cases[i].icon_name, | 650 test_cases[i].icon_name, |
651 base::FilePath(), | 651 base::FilePath(), |
652 test_cases[i].nodisplay)); | 652 test_cases[i].nodisplay)); |
653 } | 653 } |
654 } | 654 } |
655 | 655 |
656 #endif | 656 #endif |
OLD | NEW |