OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ | |
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ | |
7 | |
8 #include <memory> | |
9 #include <string> | |
10 #include <vector> | |
11 | |
12 #include "content/browser/payments/payment_app_context_impl.h" | |
please use gerrit instead
2016/12/16 21:41:21
You may be able to use forward declaration:
class
zino
2016/12/17 17:11:54
Done.
| |
13 #include "content/browser/payments/payment_app_manager.h" | |
14 #include "testing/gtest/include/gtest/gtest.h" | |
15 | |
16 namespace content { | |
17 | |
18 class EmbeddedWorkerTestHelper; | |
19 class StoragePartitionImpl; | |
20 class TestBrowserThreadBundle; | |
21 | |
22 class PaymentAppContentUnitTestBase : public testing::Test { | |
23 protected: | |
24 PaymentAppContentUnitTestBase(); | |
25 ~PaymentAppContentUnitTestBase() override; | |
26 | |
27 PaymentAppContextImpl* GetPaymentAppContext() const; | |
please use gerrit instead
2016/12/16 21:41:21
simple getters can be defined in the header with u
zino
2016/12/17 17:11:54
Done.
| |
28 PaymentAppManager* CreatePaymentAppManager(const GURL& scope_url, | |
please use gerrit instead
2016/12/16 21:41:21
#include "url/gurl.h"
zino
2016/12/17 17:11:54
Done.
| |
29 const GURL& sw_script_url); | |
30 void SetManifest(PaymentAppManager* manager, | |
31 const std::string& scope, | |
32 payments::mojom::PaymentAppManifestPtr manifest, | |
please use gerrit instead
2016/12/16 21:41:21
#include "components/payments/payment_app.mojom.h"
zino
2016/12/17 17:11:54
Done.
| |
33 const PaymentAppManager::SetManifestCallback& callback); | |
34 void GetManifest(PaymentAppManager* manager, | |
35 const std::string& scope, | |
36 const PaymentAppManager::GetManifestCallback& callback); | |
37 | |
38 private: | |
39 std::unique_ptr<TestBrowserThreadBundle> thread_bundle_; | |
40 std::unique_ptr<EmbeddedWorkerTestHelper> embedded_worker_helper_; | |
41 std::unique_ptr<StoragePartitionImpl> storage_partition_impl_; | |
42 scoped_refptr<PaymentAppContextImpl> payment_app_context_; | |
please use gerrit instead
2016/12/16 21:41:21
#include "base/memory/ref_counted.h"
zino
2016/12/17 17:11:54
Done.
| |
43 std::vector<payments::mojom::PaymentAppManagerPtr> payment_app_managers_; | |
44 | |
45 DISALLOW_COPY_AND_ASSIGN(PaymentAppContentUnitTestBase); | |
please use gerrit instead
2016/12/16 21:41:21
#include "base/macros.h"
zino
2016/12/17 17:11:54
Done.
| |
46 }; | |
47 | |
48 } // namespace content | |
49 | |
50 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTENT_UNITTEST_BASE_H_ | |
OLD | NEW |