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

Side by Side Diff: content/browser/payments/payment_app_content_unittest_base.cc

Issue 2585303002: PaymentApp: Fix params order of EXPECT/ASSERTs in unit tests. (Closed)
Patch Set: PaymentApp: Fix params order of EXPECT/ASSERTs in unit tests. Created 4 years 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
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 "content/browser/payments/payment_app_content_unittest_base.h" 5 #include "content/browser/payments/payment_app_content_unittest_base.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 void PaymentAppContentUnitTestBase::GetManifest( 109 void PaymentAppContentUnitTestBase::GetManifest(
110 PaymentAppManager* manager, 110 PaymentAppManager* manager,
111 const std::string& scope, 111 const std::string& scope,
112 const PaymentAppManager::GetManifestCallback& callback) { 112 const PaymentAppManager::GetManifestCallback& callback) {
113 ASSERT_NE(nullptr, manager); 113 ASSERT_NE(nullptr, manager);
114 manager->GetManifest(scope, callback); 114 manager->GetManifest(scope, callback);
115 base::RunLoop().RunUntilIdle(); 115 base::RunLoop().RunUntilIdle();
116 } 116 }
117 117
118 payments::mojom::PaymentAppManifestPtr
119 PaymentAppContentUnitTestBase::CreatePaymentAppManifestForTest(
120 const std::string& name) {
121 payments::mojom::PaymentAppOptionPtr option =
122 payments::mojom::PaymentAppOption::New();
123 option->name = "Visa ****";
124 option->id = "payment-app-id";
125 option->icon = std::string("payment-app-icon");
126 option->enabled_methods.push_back("visa");
127
128 payments::mojom::PaymentAppManifestPtr manifest =
129 payments::mojom::PaymentAppManifest::New();
130 manifest->icon = std::string("payment-app-icon");
131 manifest->name = name;
132 manifest->options.push_back(std::move(option));
133
134 return manifest;
135 }
136
118 } // namespace content 137 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698