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

Side by Side Diff: chrome/browser/webdata/logins_table_unittest.cc

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years 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
« no previous file with comments | « chrome/browser/webdata/logins_table.cc ('k') | chrome/browser/webdata/web_data_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/webdata/logins_table.h" 10 #include "chrome/browser/webdata/logins_table.h"
11 #include "chrome/browser/webdata/web_database.h" 11 #include "chrome/browser/webdata/web_database.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/glue/password_form.h" 14 #include "webkit/forms/password_form.h"
15 15
16 using base::Time; 16 using base::Time;
17 using base::TimeDelta; 17 using base::TimeDelta;
18 using webkit_glue::PasswordForm; 18 using webkit::forms::PasswordForm;
19 19
20 class LoginsTableTest : public testing::Test { 20 class LoginsTableTest : public testing::Test {
21 public: 21 public:
22 LoginsTableTest() {} 22 LoginsTableTest() {}
23 virtual ~LoginsTableTest() {} 23 virtual ~LoginsTableTest() {}
24 24
25 protected: 25 protected:
26 virtual void SetUp() { 26 virtual void SetUp() {
27 PathService::Get(chrome::DIR_TEST_DATA, &file_); 27 PathService::Get(chrome::DIR_TEST_DATA, &file_);
28 const std::string test_db = "TestWebDatabase" + 28 const std::string test_db = "TestWebDatabase" +
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // GetLogins should give the blacklisted result. 270 // GetLogins should give the blacklisted result.
271 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result)); 271 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result));
272 EXPECT_EQ(1U, result.size()); 272 EXPECT_EQ(1U, result.size());
273 ClearResults(&result); 273 ClearResults(&result);
274 274
275 // So should GetAll including blacklisted. 275 // So should GetAll including blacklisted.
276 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true)); 276 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true));
277 EXPECT_EQ(1U, result.size()); 277 EXPECT_EQ(1U, result.size());
278 ClearResults(&result); 278 ClearResults(&result);
279 } 279 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/logins_table.cc ('k') | chrome/browser/webdata/web_data_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698