Skip to content

Commit

Permalink
tests: Fix build failures
Browse files Browse the repository at this point in the history
Also update copyrights where appropriate.
  • Loading branch information
Chris Townsend committed Apr 16, 2019
1 parent f4ee636 commit 30475a3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/multipass/url_downloader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Canonical, Ltd.
* Copyright (C) 2017-2019 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/custom_image_host.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 Canonical, Ltd.
* Copyright (C) 2018-2019 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/network/url_downloader.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2018 Canonical, Ltd.
* Copyright (C) 2017-2019 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 2 additions & 6 deletions tests/stub_virtual_machine.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2018 Canonical, Ltd.
* Copyright (C) 2017-2019 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -13,24 +13,20 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Alberto Aguirre <[email protected]>
*
*/

#ifndef MULTIPASS_STUB_VIRTUAL_MACHINE_H
#define MULTIPASS_STUB_VIRTUAL_MACHINE_H

#include <multipass/virtual_machine.h>

#include "stub_ssh_key_provider.h"

namespace multipass
{
namespace test
{
struct StubVirtualMachine final : public multipass::VirtualMachine
{
StubVirtualMachine() : VirtualMachine{StubSSHKeyProvider(), ""}
StubVirtualMachine() : VirtualMachine{nullptr, ""}
{
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_libvirt_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct LibVirtBackend : public Test
"",
{dummy_image.name(), "", "", "", "", "", "", {}},
dummy_cloud_init_iso.name(),
key_provider};
&key_provider};
mpt::TempDir data_dir;

decltype(MOCK(virConnectClose)) connect_close{MOCK(virConnectClose)};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_qemu_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct QemuBackend : public mpt::TestWithMockedBinPath
"",
{dummy_image.name(), "", "", "", "", "", "", {}},
dummy_cloud_init_iso.name(),
key_provider};
&key_provider};
mpt::TempDir data_dir;
};

Expand Down

0 comments on commit 30475a3

Please sign in to comment.