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 namespace { |
| 12 |
| 13 class DownloadUtilTest : public testing::Test { |
| 14 public: |
| 15 DownloadUtilTest() {} |
| 16 |
| 17 virtual ~DownloadUtilTest() { |
| 18 } |
| 19 }; |
| 20 |
| 21 } // namespace |
| 22 |
| 23 TEST_F(DownloadUtilTest, FinchStrings) { |
| 24 EXPECT_EQ( |
| 25 ASCIIToUTF16("This file is malicious."), |
| 26 download_util::AssembleMalwareFinchString( |
| 27 download_util::kCondition3Malicious, string16())); |
| 28 EXPECT_EQ( |
| 29 ASCIIToUTF16("malware.exe is malicious."), |
| 30 download_util::AssembleMalwareFinchString( |
| 31 download_util::kCondition3Malicious, ASCIIToUTF16("malware.exe"))); |
| 32 } |
| 33 |
OLD | NEW |