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

Side by Side Diff: chrome/browser/password_manager/login_database_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/string_util.h" // TODO(brettw) remove when ASCIIToUTF16 moves.
12 #include "base/time.h" 11 #include "base/time.h"
12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/password_manager/login_database.h" 13 #include "chrome/browser/password_manager/login_database.h"
14 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
15 #include "webkit/glue/password_form.h" 15 #include "webkit/glue/password_form.h"
16 16
17 using webkit_glue::PasswordForm; 17 using webkit_glue::PasswordForm;
18 18
19 class LoginDatabaseTest : public testing::Test { 19 class LoginDatabaseTest : public testing::Test {
20 protected: 20 protected:
21 virtual void SetUp() { 21 virtual void SetUp() {
22 PathService::Get(chrome::DIR_TEST_DATA, &file_); 22 PathService::Get(chrome::DIR_TEST_DATA, &file_);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // GetLogins should give the blacklisted result. 274 // GetLogins should give the blacklisted result.
275 EXPECT_TRUE(db->GetLogins(form, &result)); 275 EXPECT_TRUE(db->GetLogins(form, &result));
276 EXPECT_EQ(1U, result.size()); 276 EXPECT_EQ(1U, result.size());
277 ClearResults(&result); 277 ClearResults(&result);
278 278
279 // So should GetAllBlacklistedLogins. 279 // So should GetAllBlacklistedLogins.
280 EXPECT_TRUE(db->GetBlacklistLogins(&result)); 280 EXPECT_TRUE(db->GetBlacklistLogins(&result));
281 EXPECT_EQ(1U, result.size()); 281 EXPECT_EQ(1U, result.size());
282 ClearResults(&result); 282 ClearResults(&result);
283 } 283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698