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

Side by Side Diff: components/autofill/core/browser/personal_data_manager_unittest.cc

Issue 981343003: Fix flake in PersonalDataManagerTest.UpdateServerCreditCardUsageStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xdisplaycheck Created 5 years, 9 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
« no previous file with comments | « no previous file | components/components_tests.gyp » ('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 2013 The Chromium Authors. All rights reserved. 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 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 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3135 base::MessageLoop::current()->Run(); 3135 base::MessageLoop::current()->Run();
3136 3136
3137 EXPECT_EQ(1U, personal_data_->GetCreditCards()[0]->use_count()); 3137 EXPECT_EQ(1U, personal_data_->GetCreditCards()[0]->use_count());
3138 EXPECT_NE(base::Time(), personal_data_->GetCreditCards()[0]->use_date()); 3138 EXPECT_NE(base::Time(), personal_data_->GetCreditCards()[0]->use_date());
3139 3139
3140 EXPECT_EQ(0U, personal_data_->GetCreditCards()[1]->use_count()); 3140 EXPECT_EQ(0U, personal_data_->GetCreditCards()[1]->use_count());
3141 EXPECT_EQ(base::Time(), personal_data_->GetCreditCards()[1]->use_date()); 3141 EXPECT_EQ(base::Time(), personal_data_->GetCreditCards()[1]->use_date());
3142 3142
3143 EXPECT_EQ(2U, personal_data_->GetCreditCards()[2]->use_count()); 3143 EXPECT_EQ(2U, personal_data_->GetCreditCards()[2]->use_count());
3144 EXPECT_NE(base::Time(), personal_data_->GetCreditCards()[2]->use_date()); 3144 EXPECT_NE(base::Time(), personal_data_->GetCreditCards()[2]->use_date());
3145 EXPECT_NE(initial_use_date, personal_data_->GetCreditCards()[2]->use_date()); 3145 // Time may or may not have elapsed between unmasking and RecordUseOf.
3146 EXPECT_LE(initial_use_date, personal_data_->GetCreditCards()[2]->use_date());
3146 } 3147 }
3147 3148
3148 } // namespace autofill 3149 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698