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

Side by Side Diff: chrome/browser/web_applications/web_app_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/web_applications/web_app.h" 5 #include "chrome/browser/web_applications/web_app.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/tab_helper.h" 10 #include "chrome/browser/extensions/tab_helper.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 base::FilePath result( 64 base::FilePath result(
65 web_app::GetWebAppDataDirectory(profile_path, "123", GURL())); 65 web_app::GetWebAppDataDirectory(profile_path, "123", GURL()));
66 base::FilePath expected = profile_path.AppendASCII("Web Applications") 66 base::FilePath expected = profile_path.AppendASCII("Web Applications")
67 .AppendASCII("_crx_123"); 67 .AppendASCII("_crx_123");
68 EXPECT_EQ(expected, result); 68 EXPECT_EQ(expected, result);
69 } 69 }
70 70
71 TEST_F(WebApplicationTest, AppDirWithUrl) { 71 TEST_F(WebApplicationTest, AppDirWithUrl) {
72 base::FilePath profile_path(FILE_PATH_LITERAL("profile")); 72 base::FilePath profile_path(FILE_PATH_LITERAL("profile"));
73 base::FilePath result(web_app::GetWebAppDataDirectory( 73 base::FilePath result(web_app::GetWebAppDataDirectory(
74 profile_path, "", GURL("http://example.com"))); 74 profile_path, std::string(), GURL("http://example.com")));
75 base::FilePath expected = profile_path.AppendASCII("Web Applications") 75 base::FilePath expected = profile_path.AppendASCII("Web Applications")
76 .AppendASCII("example.com") 76 .AppendASCII("example.com").AppendASCII("http_80");
77 .AppendASCII("http_80");
78 EXPECT_EQ(expected, result); 77 EXPECT_EQ(expected, result);
79 } 78 }
OLDNEW
« no previous file with comments | « chrome/browser/value_store/leveldb_value_store.cc ('k') | chrome/browser/webdata/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698