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

Side by Side Diff: chrome/browser/download/download_util_unittest.cc

Issue 22640018: Set up Finch trial for malware download warnings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor change to the strings Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 };
Dan Beam 2013/08/09 21:25:02 nit: I think you can replace L13-19 with typede
asanka 2013/08/09 21:40:32 Yeah. Actually you don't need a fixture for this.
felt 2013/08/09 22:38:03 Done.
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698