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

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

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: rebase Created 3 years, 8 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 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 #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 23 matching lines...) Expand all
34 void SetManifest(PaymentAppManager* manager, 34 void SetManifest(PaymentAppManager* manager,
35 payments::mojom::PaymentAppManifestPtr manifest, 35 payments::mojom::PaymentAppManifestPtr manifest,
36 const PaymentAppManager::SetManifestCallback& callback); 36 const PaymentAppManager::SetManifestCallback& callback);
37 void GetManifest(PaymentAppManager* manager, 37 void GetManifest(PaymentAppManager* manager,
38 const PaymentAppManager::GetManifestCallback& callback); 38 const PaymentAppManager::GetManifestCallback& callback);
39 payments::mojom::PaymentAppManifestPtr CreatePaymentAppManifestForTest( 39 payments::mojom::PaymentAppManifestPtr CreatePaymentAppManifestForTest(
40 const std::string& name); 40 const std::string& name);
41 void UnregisterServiceWorker(const GURL& scope_url); 41 void UnregisterServiceWorker(const GURL& scope_url);
42 42
43 void ResetPaymentAppInvoked() const; 43 void ResetPaymentAppInvoked() const;
44 bool payment_app_invoked() const;
45 int64_t last_sw_registration_id() const; 44 int64_t last_sw_registration_id() const;
46 const GURL& last_sw_scope_url() const; 45 const GURL& last_sw_scope_url() const;
47 46
48 private: 47 private:
49 class PaymentAppForWorkerTestHelper; 48 class PaymentAppForWorkerTestHelper;
50 49
51 StoragePartitionImpl* storage_partition(); 50 StoragePartitionImpl* storage_partition();
52 PaymentAppContextImpl* payment_app_context(); 51 PaymentAppContextImpl* payment_app_context();
53 52
54 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_; 53 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_;
55 std::unique_ptr<PaymentAppForWorkerTestHelper> worker_helper_; 54 std::unique_ptr<PaymentAppForWorkerTestHelper> worker_helper_;
56 std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_; 55 std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_;
57 56
58 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase); 57 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase);
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ 62 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app_browsertest.cc ('k') | content/browser/payments/payment_app_content_unittest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698