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

Side by Side Diff: components/os_crypt/kwallet_dbus_unittest.cc

Issue 2086123003: Move KWalletDBus util from the Password Manager to OSCrypt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « components/os_crypt/kwallet_dbus.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/os_crypt/kwallet_dbus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698