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

Unified Diff: components/payments/content/utility/payment_manifest_parser_unittest.cc

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Address comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/content/utility/payment_manifest_parser.cc ('k') | components/payments_strings.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/content/utility/payment_manifest_parser_unittest.cc
diff --git a/components/payments/content/android/utility/payment_manifest_parser_unittest.cc b/components/payments/content/utility/payment_manifest_parser_unittest.cc
similarity index 97%
rename from components/payments/content/android/utility/payment_manifest_parser_unittest.cc
rename to components/payments/content/utility/payment_manifest_parser_unittest.cc
index 7523edc18e5827f40e151db25c54a92abc94b2f0..cd52aa145d53f40951d5fa254eb5b819297eecfa 100644
--- a/components/payments/content/android/utility/payment_manifest_parser_unittest.cc
+++ b/components/payments/content/utility/payment_manifest_parser_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/payments/content/android/utility/payment_manifest_parser.h"
+#include "components/payments/content/utility/payment_manifest_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -19,7 +19,7 @@ void ExpectParsed(
const std::string& input,
const std::string& expected_package_name,
int expected_version,
- const std::vector<std::vector<uint8_t>>& expected_fingerprints = {}) {
+ const std::vector<std::vector<uint8_t>>& expected_fingerprints) {
std::vector<mojom::PaymentManifestSectionPtr> actual_output =
PaymentManifestParser::ParseIntoVector(input);
ASSERT_EQ(1U, actual_output.size());
@@ -67,7 +67,8 @@ TEST(PaymentManifestParserTest, NoPackageNameIsMalformed) {
}
TEST(PaymentManifestParserTest, OnlyPackageNameIsWellFormed) {
- ExpectParsed("{\"android\": [{\"package\": \"*\"}]}", "*", 0);
+ ExpectParsed("{\"android\": [{\"package\": \"*\"}]}", "*", 0,
+ std::vector<std::vector<uint8_t>>());
}
TEST(PaymentManifestParserTest, WellFormed) {
« no previous file with comments | « components/payments/content/utility/payment_manifest_parser.cc ('k') | components/payments_strings.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698