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

Unified Diff: components/autofill/content/browser/autocheckout_page_meta_data_unittest.cc

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 4 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: components/autofill/content/browser/autocheckout_page_meta_data_unittest.cc
diff --git a/components/autofill/content/browser/autocheckout_page_meta_data_unittest.cc b/components/autofill/content/browser/autocheckout_page_meta_data_unittest.cc
deleted file mode 100644
index 0e740608319c891f40633747606f1816fe373b88..0000000000000000000000000000000000000000
--- a/components/autofill/content/browser/autocheckout_page_meta_data_unittest.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 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 "components/autofill/content/browser/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

Powered by Google App Engine
This is Rietveld 408576698