OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/autofill/autocheckout_page_meta_data.h" | 5 #include "components/autofill/browser/autocheckout_page_meta_data.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 | 7 |
8 namespace { | 8 namespace { |
9 | 9 |
10 void SetPageDetails(autofill::AutocheckoutPageMetaData* meta_data, | 10 void SetPageDetails(autofill::AutocheckoutPageMetaData* meta_data, |
11 int current_page, | 11 int current_page, |
12 int total) { | 12 int total) { |
13 meta_data->current_page_number = current_page; | 13 meta_data->current_page_number = current_page; |
14 meta_data->total_pages = total; | 14 meta_data->total_pages = total; |
15 } | 15 } |
(...skipping 29 matching lines...) Expand all Loading... |
45 EXPECT_TRUE(page_meta_data.IsInAutofillableFlow()); | 45 EXPECT_TRUE(page_meta_data.IsInAutofillableFlow()); |
46 EXPECT_TRUE(page_meta_data.IsEndOfAutofillableFlow()); | 46 EXPECT_TRUE(page_meta_data.IsEndOfAutofillableFlow()); |
47 | 47 |
48 SetPageDetails(&page_meta_data, 2, 2); | 48 SetPageDetails(&page_meta_data, 2, 2); |
49 EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow()); | 49 EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow()); |
50 EXPECT_FALSE(page_meta_data.IsInAutofillableFlow()); | 50 EXPECT_FALSE(page_meta_data.IsInAutofillableFlow()); |
51 EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow()); | 51 EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow()); |
52 } | 52 } |
53 | 53 |
54 } // namespace autofill | 54 } // namespace autofill |
OLD | NEW |