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

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

Issue 2875493003: PaymentHandler: Remove PaymentAppManifest and PaymentAppOption. (Closed)
Patch Set: global-interface-listing Created 3 years, 7 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 13 matching lines...) Expand all
24 class TestBrowserThreadBundle; 24 class TestBrowserThreadBundle;
25 25
26 class PaymentAppContentUnitTestBase : public testing::Test { 26 class PaymentAppContentUnitTestBase : public testing::Test {
27 protected: 27 protected:
28 PaymentAppContentUnitTestBase(); 28 PaymentAppContentUnitTestBase();
29 ~PaymentAppContentUnitTestBase() override; 29 ~PaymentAppContentUnitTestBase() override;
30 30
31 BrowserContext* browser_context(); 31 BrowserContext* browser_context();
32 PaymentManager* CreatePaymentManager(const GURL& scope_url, 32 PaymentManager* CreatePaymentManager(const GURL& scope_url,
33 const GURL& sw_script_url); 33 const GURL& sw_script_url);
34 void SetManifest(PaymentManager* manager,
35 payments::mojom::PaymentAppManifestPtr manifest,
36 PaymentManager::SetManifestCallback callback);
37 void GetManifest(PaymentManager* manager,
38 PaymentManager::GetManifestCallback callback);
39 payments::mojom::PaymentAppManifestPtr CreatePaymentAppManifestForTest(
40 const std::string& name);
41 void UnregisterServiceWorker(const GURL& scope_url); 34 void UnregisterServiceWorker(const GURL& scope_url);
42 35
43 void ResetPaymentAppInvoked() const; 36 void ResetPaymentAppInvoked() const;
44 int64_t last_sw_registration_id() const; 37 int64_t last_sw_registration_id() const;
45 const GURL& last_sw_scope_url() const; 38 const GURL& last_sw_scope_url() const;
46 39
47 private: 40 private:
48 class PaymentAppForWorkerTestHelper; 41 class PaymentAppForWorkerTestHelper;
49 42
50 StoragePartitionImpl* storage_partition(); 43 StoragePartitionImpl* storage_partition();
51 PaymentAppContextImpl* payment_app_context(); 44 PaymentAppContextImpl* payment_app_context();
52 45
53 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_; 46 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_;
54 std::unique_ptr<PaymentAppForWorkerTestHelper> worker_helper_; 47 std::unique_ptr<PaymentAppForWorkerTestHelper> worker_helper_;
55 std::vector<payments::mojom::PaymentManagerPtr> payment_managers_; 48 std::vector<payments::mojom::PaymentManagerPtr> payment_managers_;
56 49
57 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase); 50 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase);
58 }; 51 };
59 52
60 } // namespace content 53 } // namespace content
61 54
62 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ 55 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app.proto ('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