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

Unified Diff: chrome/browser/autofill/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autocheckout_page_meta_data_unittest.cc
diff --git a/chrome/browser/autofill/autocheckout_page_meta_data_unittest.cc b/chrome/browser/autofill/autocheckout_page_meta_data_unittest.cc
deleted file mode 100644
index d11e4aef6fad267c86e5085e15bcad93ed4ad5d0..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/autocheckout_page_meta_data_unittest.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/autofill/autocheckout_page_meta_data.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-void SetPageDetails(autofill::AutocheckoutPageMetaData* meta_data,
- int current_page,
- int total) {
- meta_data->current_page_number = current_page;
- meta_data->total_pages = total;
-}
-
-} // namespace
-
-namespace autofill {
-
-TEST(AutocheckoutPageMetaDataTest, AutofillableFlow) {
-
- AutocheckoutPageMetaData page_meta_data;
- EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsInAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow());
-
- SetPageDetails(&page_meta_data, -1, 0);
- EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsInAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow());
-
- SetPageDetails(&page_meta_data, 0, 0);
- EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsInAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow());
-
- SetPageDetails(&page_meta_data, 0, 1);
- EXPECT_TRUE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_TRUE(page_meta_data.IsInAutofillableFlow());
- EXPECT_TRUE(page_meta_data.IsEndOfAutofillableFlow());
-
- SetPageDetails(&page_meta_data, 1, 2);
- EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_TRUE(page_meta_data.IsInAutofillableFlow());
- EXPECT_TRUE(page_meta_data.IsEndOfAutofillableFlow());
-
- SetPageDetails(&page_meta_data, 2, 2);
- EXPECT_FALSE(page_meta_data.IsStartOfAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsInAutofillableFlow());
- EXPECT_FALSE(page_meta_data.IsEndOfAutofillableFlow());
-}
-
-} // namespace autofill
« no previous file with comments | « chrome/browser/autofill/autocheckout_page_meta_data.cc ('k') | chrome/browser/autofill/autocomplete_history_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698