Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/download/download_util.h" | |
| 6 | |
| 7 #include "base/strings/string16.h" | |
| 8 #include "base/strings/utf_string_conversions.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | |
| 10 | |
| 11 TEST(DownloadUtilTest, FinchStrings) { | |
| 12 EXPECT_EQ( | |
| 13 ASCIIToUTF16("This file is malicious."), | |
| 14 download_util::AssembleMalwareFinchString( | |
| 15 download_util::kCondition3Malicious, string16())); | |
| 16 EXPECT_EQ( | |
| 17 ASCIIToUTF16("File 'malware.exe' is malicious."), | |
| 18 download_util::AssembleMalwareFinchString( | |
| 19 download_util::kCondition3Malicious, ASCIIToUTF16("malware.exe"))); | |
| 20 } | |
|
Dan Beam
2013/08/09 23:24:51
nit: remove blank line (IMO)
felt
2013/08/09 23:48:34
the linter complains without it
Dan Beam
2013/08/10 00:10:14
if you're talking about "1 error" next to your pat
felt
2013/08/10 00:33:00
Done.
| |
| 21 | |
| OLD | NEW |