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

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 writer.AppendInt32(1234); // pid 528 writer.AppendInt32(1234); // pid
529 return response.release(); 529 return response.release();
530 } 530 }
531 531
532 dbus::Response* NativeBackendKWalletTest::KWalletMethodCall( 532 dbus::Response* NativeBackendKWalletTest::KWalletMethodCall(
533 dbus::MethodCall* method_call, testing::Unused) { 533 dbus::MethodCall* method_call, testing::Unused) {
534 if (!kwallet_running_) 534 if (!kwallet_running_)
535 return nullptr; 535 return nullptr;
536 EXPECT_EQ("org.kde.KWallet", method_call->GetInterface()); 536 EXPECT_EQ("org.kde.KWallet", method_call->GetInterface());
537 537
538 if (ContainsKey(failing_methods_, method_call->GetMember())) 538 if (base::ContainsKey(failing_methods_, method_call->GetMember()))
539 return nullptr; 539 return nullptr;
540 std::unique_ptr<dbus::Response> response; 540 std::unique_ptr<dbus::Response> response;
541 if (method_call->GetMember() == "isEnabled") { 541 if (method_call->GetMember() == "isEnabled") {
542 response = dbus::Response::CreateEmpty(); 542 response = dbus::Response::CreateEmpty();
543 dbus::MessageWriter writer(response.get()); 543 dbus::MessageWriter writer(response.get());
544 writer.AppendBool(kwallet_enabled_); 544 writer.AppendBool(kwallet_enabled_);
545 } else if (method_call->GetMember() == "networkWallet") { 545 } else if (method_call->GetMember() == "networkWallet") {
546 response = dbus::Response::CreateEmpty(); 546 response = dbus::Response::CreateEmpty();
547 dbus::MessageWriter writer(response.get()); 547 dbus::MessageWriter writer(response.get());
548 writer.AppendString("test_wallet"); // Should match |open| below. 548 writer.AppendString("test_wallet"); // Should match |open| below.
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 CheckVersion7Pickle(); 1430 CheckVersion7Pickle();
1431 } 1431 }
1432 1432
1433 TEST_F(NativeBackendKWalletPickleTest, CheckVersion8Pickle) { 1433 TEST_F(NativeBackendKWalletPickleTest, CheckVersion8Pickle) {
1434 CheckVersion8Pickle(); 1434 CheckVersion8Pickle();
1435 } 1435 }
1436 1436
1437 TEST_F(NativeBackendKWalletPickleTest, CheckVersion9Pickle) { 1437 TEST_F(NativeBackendKWalletPickleTest, CheckVersion9Pickle) {
1438 CheckVersion9Pickle(); 1438 CheckVersion9Pickle();
1439 } 1439 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698