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

Unified Diff: url/url_test_utils.h

Issue 1270443006: Proof-read comments in src/url/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« url/gurl.h ('K') | « url/url_parse_unittest.cc ('k') | url/url_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_test_utils.h
diff --git a/url/url_test_utils.h b/url/url_test_utils.h
index 6400bac7d428d99d85e2ec85333f98d31c2bb59b..156c428ad7eb60618b1b3955c6104cdb7060e89e 100644
--- a/url/url_test_utils.h
+++ b/url/url_test_utils.h
@@ -19,7 +19,7 @@ namespace url {
namespace test_utils {
// Converts a UTF-16 string from native wchar_t format to char16, by
-// truncating the high 32 bits. This is not meant to handle true UTF-32
+// truncating the high 32 bits. This is not meant to handle true UTF-32
// encoded strings.
inline base::string16 WStringToUTF16(const wchar_t* src) {
base::string16 str;
@@ -30,7 +30,7 @@ inline base::string16 WStringToUTF16(const wchar_t* src) {
return str;
}
-// Converts a string from UTF-8 to UTF-16
+// Converts a string from UTF-8 to UTF-16.
inline base::string16 ConvertUTF8ToUTF16(const std::string& src) {
int length = static_cast<int>(src.length());
EXPECT_LT(length, 1024);
@@ -39,7 +39,7 @@ inline base::string16 ConvertUTF8ToUTF16(const std::string& src) {
return base::string16(output.data(), output.length());
}
-// Converts a string from UTF-16 to UTF-8
+// Converts a string from UTF-16 to UTF-8.
inline std::string ConvertUTF16ToUTF8(const base::string16& src) {
std::string str;
StdStringCanonOutput output(&str);
« url/gurl.h ('K') | « url/url_parse_unittest.cc ('k') | url/url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698