OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 12 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
13 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_controlle
r.h" | 13 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_controlle
r.h" |
14 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_view.h" | 14 #include "chrome/browser/ui/autofill/test_generated_credit_card_bubble_view.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
17 #include "components/autofill/core/browser/autofill_common_test.h" | 17 #include "components/autofill/core/browser/autofill_test_utils.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
19 #include "content/public/common/page_transition_types.h" | 19 #include "content/public/common/page_transition_types.h" |
20 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
21 #include "content/public/test/web_contents_tester.h" | 21 #include "content/public/test/web_contents_tester.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "ui/gfx/range/range.h" | 23 #include "ui/gfx/range/range.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include "ui/base/win/scoped_ole_initializer.h" | 26 #include "ui/base/win/scoped_ole_initializer.h" |
27 #endif | 27 #endif |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // If a page redirects right after submitting, the bubble should remain. | 173 // If a page redirects right after submitting, the bubble should remain. |
174 EXPECT_FALSE(controller()->GetTestingBubble()); | 174 EXPECT_FALSE(controller()->GetTestingBubble()); |
175 Show(); | 175 Show(); |
176 EXPECT_TRUE(controller()->GetTestingBubble()->showing()); | 176 EXPECT_TRUE(controller()->GetTestingBubble()->showing()); |
177 | 177 |
178 Redirect(); | 178 Redirect(); |
179 EXPECT_TRUE(controller()->GetTestingBubble()->showing()); | 179 EXPECT_TRUE(controller()->GetTestingBubble()->showing()); |
180 } | 180 } |
181 | 181 |
182 } // namespace autofill | 182 } // namespace autofill |
OLD | NEW |