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

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

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change 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 "chrome/browser/password_manager/password_store_x.h" 5 #include "chrome/browser/password_manager/password_store_x.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 base::FilePath test_login_db_file_path() const { 392 base::FilePath test_login_db_file_path() const {
393 return temp_dir_.path().Append(FILE_PATH_LITERAL("login_test")); 393 return temp_dir_.path().Append(FILE_PATH_LITERAL("login_test"));
394 } 394 }
395 395
396 content::TestBrowserThreadBundle thread_bundle_; 396 content::TestBrowserThreadBundle thread_bundle_;
397 397
398 base::ScopedTempDir temp_dir_; 398 base::ScopedTempDir temp_dir_;
399 }; 399 };
400 400
401 ACTION(STLDeleteElements0) { 401 ACTION(STLDeleteElements0) {
402 STLDeleteContainerPointers(arg0.begin(), arg0.end()); 402 base::STLDeleteContainerPointers(arg0.begin(), arg0.end());
403 } 403 }
404 404
405 TEST_P(PasswordStoreXTest, Notifications) { 405 TEST_P(PasswordStoreXTest, Notifications) {
406 std::unique_ptr<password_manager::LoginDatabase> login_db( 406 std::unique_ptr<password_manager::LoginDatabase> login_db(
407 new password_manager::LoginDatabase(test_login_db_file_path())); 407 new password_manager::LoginDatabase(test_login_db_file_path()));
408 scoped_refptr<PasswordStoreX> store(new PasswordStoreX( 408 scoped_refptr<PasswordStoreX> store(new PasswordStoreX(
409 base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get(), 409 base::ThreadTaskRunnerHandle::Get(), base::ThreadTaskRunnerHandle::Get(),
410 std::move(login_db), GetBackend(GetParam()))); 410 std::move(login_db), GetBackend(GetParam())));
411 store->Init(syncer::SyncableService::StartSyncFlare()); 411 store->Init(syncer::SyncableService::StartSyncFlare());
412 412
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 584
585 INSTANTIATE_TEST_CASE_P(NoBackend, 585 INSTANTIATE_TEST_CASE_P(NoBackend,
586 PasswordStoreXTest, 586 PasswordStoreXTest,
587 testing::Values(NO_BACKEND)); 587 testing::Values(NO_BACKEND));
588 INSTANTIATE_TEST_CASE_P(FailingBackend, 588 INSTANTIATE_TEST_CASE_P(FailingBackend,
589 PasswordStoreXTest, 589 PasswordStoreXTest,
590 testing::Values(FAILING_BACKEND)); 590 testing::Values(FAILING_BACKEND));
591 INSTANTIATE_TEST_CASE_P(WorkingBackend, 591 INSTANTIATE_TEST_CASE_P(WorkingBackend,
592 PasswordStoreXTest, 592 PasswordStoreXTest,
593 testing::Values(WORKING_BACKEND)); 593 testing::Values(WORKING_BACKEND));
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_win_unittest.cc ('k') | chrome/browser/plugins/plugin_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698