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

Side by Side Diff: components/password_manager/core/browser/password_store_default_unittest.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 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
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 "components/password_manager/core/browser/password_store_default.h" 5 #include "components/password_manager/core/browser/password_store_default.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return temp_dir_.path().Append(FILE_PATH_LITERAL("login_test")); 149 return temp_dir_.path().Append(FILE_PATH_LITERAL("login_test"));
150 } 150 }
151 151
152 } // anonymous namespace 152 } // anonymous namespace
153 153
154 INSTANTIATE_TYPED_TEST_CASE_P(Default, 154 INSTANTIATE_TYPED_TEST_CASE_P(Default,
155 PasswordStoreOriginTest, 155 PasswordStoreOriginTest,
156 PasswordStoreDefaultTestDelegate); 156 PasswordStoreDefaultTestDelegate);
157 157
158 ACTION(STLDeleteElements0) { 158 ACTION(STLDeleteElements0) {
159 STLDeleteContainerPointers(arg0.begin(), arg0.end()); 159 base::STLDeleteContainerPointers(arg0.begin(), arg0.end());
160 } 160 }
161 161
162 TEST(PasswordStoreDefaultTest, NonASCIIData) { 162 TEST(PasswordStoreDefaultTest, NonASCIIData) {
163 PasswordStoreDefaultTestDelegate delegate; 163 PasswordStoreDefaultTestDelegate delegate;
164 PasswordStoreDefault* store = delegate.store(); 164 PasswordStoreDefault* store = delegate.store();
165 165
166 // Some non-ASCII password form data. 166 // Some non-ASCII password form data.
167 static const PasswordFormData form_data[] = { 167 static const PasswordFormData form_data[] = {
168 {PasswordForm::SCHEME_HTML, "http://foo.example.com", 168 {PasswordForm::SCHEME_HTML, "http://foo.example.com",
169 "http://foo.example.com/origin", "http://foo.example.com/action", 169 "http://foo.example.com/origin", "http://foo.example.com/action",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 run_loop.Run(); 297 run_loop.Run();
298 298
299 bad_store->RemoveLoginsSyncedBetween(base::Time(), base::Time::Max()); 299 bad_store->RemoveLoginsSyncedBetween(base::Time(), base::Time::Max());
300 base::RunLoop().RunUntilIdle(); 300 base::RunLoop().RunUntilIdle();
301 301
302 // Ensure no notifications and no explosions during shutdown either. 302 // Ensure no notifications and no explosions during shutdown either.
303 bad_store->RemoveObserver(&mock_observer); 303 bad_store->RemoveObserver(&mock_observer);
304 } 304 }
305 305
306 } // namespace password_manager 306 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698