| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/kwallet_dbus.h" | 5 #include "components/os_crypt/kwallet_dbus.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/nix/xdg_util.h" | 11 #include "base/nix/xdg_util.h" |
| 12 #include "dbus/message.h" | 12 #include "dbus/message.h" |
| 13 #include "dbus/mock_bus.h" | 13 #include "dbus/mock_bus.h" |
| 14 #include "dbus/mock_object_proxy.h" | 14 #include "dbus/mock_object_proxy.h" |
| 15 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 *mock_kwallet_proxy_.get(), | 687 *mock_kwallet_proxy_.get(), |
| 688 MockCallMethodAndBlock(Calls(kKWalletInterface, "createFolder"), _)) | 688 MockCallMethodAndBlock(Calls(kKWalletInterface, "createFolder"), _)) |
| 689 .WillOnce(Return(nullptr)); | 689 .WillOnce(Return(nullptr)); |
| 690 | 690 |
| 691 bool created_folder = false; | 691 bool created_folder = false; |
| 692 EXPECT_EQ(KWalletDBus::Error::CANNOT_CONTACT, | 692 EXPECT_EQ(KWalletDBus::Error::CANNOT_CONTACT, |
| 693 kwallet_dbus_.CreateFolder(123, "folder", "app", &created_folder)); | 693 kwallet_dbus_.CreateFolder(123, "folder", "app", &created_folder)); |
| 694 } | 694 } |
| 695 | 695 |
| 696 } // namespace | 696 } // namespace |
| OLD | NEW |