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

Side by Side Diff: components/autofill/browser/autocheckout_page_meta_data_unittest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/autofill/browser/autocheckout_page_meta_data.cc ('k') | components/autofill/browser/autocomplete_history_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698