aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/tests.update.cpp
diff options
context:
space:
mode:
authorGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-07-01 13:14:53 -0700
committerGitHub <noreply@github.com>2019-07-01 13:14:53 -0700
commit0b9cf040bafa0a8ed064e47459779d72fcf9b9c4 (patch)
tree53036c9f0b7f051abe737376f7ddeeeccd9948d0 /toolsrc/src/tests.update.cpp
parent34d19da9ffd0571bf16190ec4a16a04bef265900 (diff)
parent77cfd20b83e71a0c513658e7c4d049d4039905af (diff)
downloadvcpkg-0b9cf040bafa0a8ed064e47459779d72fcf9b9c4.tar.gz
vcpkg-0b9cf040bafa0a8ed064e47459779d72fcf9b9c4.zip
Merge branch 'master' into openssl-unix-dynamic
Diffstat (limited to 'toolsrc/src/tests.update.cpp')
-rw-r--r--toolsrc/src/tests.update.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/toolsrc/src/tests.update.cpp b/toolsrc/src/tests.update.cpp
index b6e487c17..5e3f9f3e2 100644
--- a/toolsrc/src/tests.update.cpp
+++ b/toolsrc/src/tests.update.cpp
@@ -21,9 +21,9 @@ namespace UnitTest1
StatusParagraphs status_db(std::move(status_paragraphs));
- std::unordered_map<std::string, SourceControlFile> map;
+ std::unordered_map<std::string, SourceControlFileLocation> map;
auto scf = unwrap(SourceControlFile::parse_control_file(Pgh{{{"Source", "a"}, {"Version", "0"}}}));
- map.emplace("a", std::move(*scf));
+ map.emplace("a", SourceControlFileLocation { std::move(scf), "" });
Dependencies::MapPortFileProvider provider(map);
auto pkgs = SortedVector<OutdatedPackage>(Update::find_outdated_packages(provider, status_db),
@@ -45,9 +45,9 @@ namespace UnitTest1
StatusParagraphs status_db(std::move(status_paragraphs));
- std::unordered_map<std::string, SourceControlFile> map;
+ std::unordered_map<std::string, SourceControlFileLocation> map;
auto scf = unwrap(SourceControlFile::parse_control_file(Pgh{{{"Source", "a"}, {"Version", "0"}}}));
- map.emplace("a", std::move(*scf));
+ map.emplace("a", SourceControlFileLocation { std::move(scf), "" });
Dependencies::MapPortFileProvider provider(map);
auto pkgs = SortedVector<OutdatedPackage>(Update::find_outdated_packages(provider, status_db),
@@ -71,9 +71,9 @@ namespace UnitTest1
StatusParagraphs status_db(std::move(status_paragraphs));
- std::unordered_map<std::string, SourceControlFile> map;
+ std::unordered_map<std::string, SourceControlFileLocation> map;
auto scf = unwrap(SourceControlFile::parse_control_file(Pgh{{{"Source", "a"}, {"Version", "0"}}}));
- map.emplace("a", std::move(*scf));
+ map.emplace("a", SourceControlFileLocation{ std::move(scf), "" });
Dependencies::MapPortFileProvider provider(map);
auto pkgs = SortedVector<OutdatedPackage>(Update::find_outdated_packages(provider, status_db),
@@ -92,9 +92,9 @@ namespace UnitTest1
StatusParagraphs status_db(std::move(status_paragraphs));
- std::unordered_map<std::string, SourceControlFile> map;
+ std::unordered_map<std::string, SourceControlFileLocation> map;
auto scf = unwrap(SourceControlFile::parse_control_file(Pgh{{{"Source", "a"}, {"Version", "2"}}}));
- map.emplace("a", std::move(*scf));
+ map.emplace("a", SourceControlFileLocation{ std::move(scf), "" });
Dependencies::MapPortFileProvider provider(map);
auto pkgs = SortedVector<OutdatedPackage>(Update::find_outdated_packages(provider, status_db),