Skip to content

Commit

Permalink
FdoSecrets: unbreak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetf committed Sep 15, 2021
1 parent 5b6ad35 commit 11c3463
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/fdosecrets/dbus/DBusClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ namespace FdoSecrets

struct ProcInfo
{
uint pid = 0;
uint ppid = 0;
QString exePath{};
QString name{};
QString command{};
uint pid;
uint ppid;
QString exePath;
QString name;
QString command;

bool operator==(const ProcInfo& other) const;
bool operator!=(const ProcInfo& other) const;
Expand Down
1 change: 1 addition & 0 deletions src/fdosecrets/widgets/AccessControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ AccessControlDialog::AccessControlDialog(QWindow* parent,
detailsButton->setCheckable(true);

m_rememberCheck = new QCheckBox(tr("Remember"), this);
m_rememberCheck->setObjectName("rememberCheck"); // for testing
m_rememberCheck->setChecked(true);
m_ui->buttonBox->addButton(m_rememberCheck, QDialogButtonBox::ActionRole);

Expand Down
4 changes: 3 additions & 1 deletion tests/gui/TestGuiFdoSecrets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ class FakeClient : public DBusClient
{
public:
explicit FakeClient(DBusMgr* dbus)
: DBusClient(dbus, QStringLiteral("local"), 0, "fake-client")
: DBusClient(
dbus,
{QStringLiteral("local"), 0, true, {ProcInfo{0, 0, QStringLiteral("fake-client"), QString{}, QString{}}}})
{
}
};
Expand Down

0 comments on commit 11c3463

Please sign in to comment.