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

Side by Side Diff: components/webdata/autofill/autofill_entry_unittest.cc

Issue 13650007: Move WebData component unittests to //components/webdata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « components/webdata/DEPS ('k') | components/webdata/autofill/autofill_table_unittest.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "components/webdata/autofill/autofill_entry.h" 9 #include "components/webdata/autofill/autofill_entry.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // All outside the time limit. 69 // All outside the time limit.
70 timestamps.clear(); 70 timestamps.clear();
71 timestamps.push_back(cutoff_time - one_hour); 71 timestamps.push_back(cutoff_time - one_hour);
72 timestamps.push_back(cutoff_time - one_hour * 2); 72 timestamps.push_back(cutoff_time - one_hour * 2);
73 timestamps.push_back(cutoff_time - one_hour * 3); 73 timestamps.push_back(cutoff_time - one_hour * 3);
74 74
75 AutofillEntry entry_outside_the_limits(key, timestamps); 75 AutofillEntry entry_outside_the_limits(key, timestamps);
76 EXPECT_TRUE(entry_outside_the_limits.IsExpired()); 76 EXPECT_TRUE(entry_outside_the_limits.IsExpired());
77 EXPECT_TRUE(entry_outside_the_limits.timestamps_culled()); 77 EXPECT_TRUE(entry_outside_the_limits.timestamps_culled());
78 } 78 }
OLDNEW
« no previous file with comments | « components/webdata/DEPS ('k') | components/webdata/autofill/autofill_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698