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

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

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
« no previous file with comments | « no previous file | content/browser/payments/payment_app_content_unittest_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 PaymentAppManager* CreatePaymentAppManager(const GURL& scope_url, 34 PaymentAppManager* CreatePaymentAppManager(const GURL& scope_url,
35 const GURL& sw_script_url); 35 const GURL& sw_script_url);
36 void SetManifest(PaymentAppManager* manager, 36 void SetManifest(PaymentAppManager* manager,
37 const std::string& scope, 37 const std::string& scope,
38 payments::mojom::PaymentAppManifestPtr manifest, 38 payments::mojom::PaymentAppManifestPtr manifest,
39 const PaymentAppManager::SetManifestCallback& callback); 39 const PaymentAppManager::SetManifestCallback& callback);
40 void GetManifest(PaymentAppManager* manager, 40 void GetManifest(PaymentAppManager* manager,
41 const std::string& scope, 41 const std::string& scope,
42 const PaymentAppManager::GetManifestCallback& callback); 42 const PaymentAppManager::GetManifestCallback& callback);
43 payments::mojom::PaymentAppManifestPtr CreatePaymentAppManifestForTest(
44 const std::string& name);
43 45
44 private: 46 private:
45 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_; 47 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_;
46 std::unique_ptr<EmbeddedWorkerTestHelper> embedded_worker_helper_; 48 std::unique_ptr<EmbeddedWorkerTestHelper> embedded_worker_helper_;
47 std::unique_ptr<StoragePartitionImpl> storage_partition_impl_; 49 std::unique_ptr<StoragePartitionImpl> storage_partition_impl_;
48 scoped_refptr<PaymentAppContextImpl> payment_app_context_; 50 scoped_refptr<PaymentAppContextImpl> payment_app_context_;
49 std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_; 51 std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase); 53 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase);
52 }; 54 };
53 55
54 } // namespace content 56 } // namespace content
55 57
56 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ 58 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/payments/payment_app_content_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698