OLD | NEW |
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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "components/payments/mojom/payment_app.mojom.h" | 8 #include "components/payments/content/payment_app.mojom.h" |
9 #include "content/browser/payments/payment_app_content_unittest_base.h" | 9 #include "content/browser/payments/payment_app_content_unittest_base.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 using payments::mojom::PaymentAppManifestError; | 13 using payments::mojom::PaymentAppManifestError; |
14 using payments::mojom::PaymentAppManifestPtr; | 14 using payments::mojom::PaymentAppManifestPtr; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 namespace { | 17 namespace { |
18 | 18 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 PaymentAppManifestError read_error = PaymentAppManifestError::NONE; | 115 PaymentAppManifestError read_error = PaymentAppManifestError::NONE; |
116 GetManifest(payment_manager(), base::Bind(&GetManifestCallback, &called, | 116 GetManifest(payment_manager(), base::Bind(&GetManifestCallback, &called, |
117 &read_manifest, &read_error)); | 117 &read_manifest, &read_error)); |
118 ASSERT_TRUE(called); | 118 ASSERT_TRUE(called); |
119 | 119 |
120 EXPECT_EQ(PaymentAppManifestError::MANIFEST_STORAGE_OPERATION_FAILED, | 120 EXPECT_EQ(PaymentAppManifestError::MANIFEST_STORAGE_OPERATION_FAILED, |
121 read_error); | 121 read_error); |
122 } | 122 } |
123 | 123 |
124 } // namespace content | 124 } // namespace content |
OLD | NEW |