OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "base/macros.h" |
7 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/test/base/chrome_render_view_test.h" | 10 #include "chrome/test/base/chrome_render_view_test.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
11 #include "components/autofill/content/common/autofill_messages.h" | 12 #include "components/autofill/content/common/autofill_messages.h" |
12 #include "components/autofill/content/renderer/autofill_agent.h" | 13 #include "components/autofill/content/renderer/autofill_agent.h" |
13 #include "components/autofill/core/common/form_data.h" | 14 #include "components/autofill/core/common/form_data.h" |
14 #include "components/autofill/core/common/form_field_data.h" | 15 #include "components/autofill/core/common/form_field_data.h" |
15 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
16 #include "content/public/renderer/render_frame.h" | 17 #include "content/public/renderer/render_frame.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 }; | 345 }; |
345 | 346 |
346 TEST_F(RequestAutocompleteRendererTest, InvokingTwiceOnlyShowsOnce) { | 347 TEST_F(RequestAutocompleteRendererTest, InvokingTwiceOnlyShowsOnce) { |
347 // Attempting to show the requestAutocomplete dialog again should be ignored. | 348 // Attempting to show the requestAutocomplete dialog again should be ignored. |
348 invoking_frame_->autofillClient()->didRequestAutocomplete(invoking_form()); | 349 invoking_frame_->autofillClient()->didRequestAutocomplete(invoking_form()); |
349 EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching( | 350 EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching( |
350 AutofillHostMsg_RequestAutocomplete::ID)); | 351 AutofillHostMsg_RequestAutocomplete::ID)); |
351 } | 352 } |
352 | 353 |
353 } // namespace autofill | 354 } // namespace autofill |
OLD | NEW |