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 } |
OLD | NEW |