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

Side by Side Diff: chrome/browser/shell_integration_unittest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh 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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/browser/signin/about_signin_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698