| 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "testing/gmock/include/gmock/gmock.h" | 62 #include "testing/gmock/include/gmock/gmock.h" |
| 63 #include "testing/gtest/include/gtest/gtest.h" | 63 #include "testing/gtest/include/gtest/gtest.h" |
| 64 #include "third_party/WebKit/public/web/WebInputEvent.h" | 64 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 65 #include "ui/base/page_transition_types.h" | 65 #include "ui/base/page_transition_types.h" |
| 66 #include "ui/base/window_open_disposition.h" | 66 #include "ui/base/window_open_disposition.h" |
| 67 #include "url/gurl.h" | 67 #include "url/gurl.h" |
| 68 | 68 |
| 69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 70 #include "base/win/windows_version.h" | 70 #include "base/win/windows_version.h" |
| 71 #elif defined(OS_MACOSX) | 71 #elif defined(OS_MACOSX) |
| 72 #include "base/mac/mac_util.h" | |
| 73 #include "base/mac/scoped_nsautorelease_pool.h" | 72 #include "base/mac/scoped_nsautorelease_pool.h" |
| 74 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 73 #include "chrome/browser/ui/cocoa/run_loop_testing.h" |
| 75 #endif | 74 #endif |
| 76 | 75 |
| 77 using base::ASCIIToUTF16; | 76 using base::ASCIIToUTF16; |
| 78 | 77 |
| 79 namespace autofill { | 78 namespace autofill { |
| 80 | 79 |
| 81 namespace { | 80 namespace { |
| 82 | 81 |
| (...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 "<input autocomplete='transaction-currency' value='USD' readonly>" | 1754 "<input autocomplete='transaction-currency' value='USD' readonly>" |
| 1756 "<input autocomplete='cc-csc'>"); | 1755 "<input autocomplete='cc-csc'>"); |
| 1757 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html); | 1756 AutofillDialogControllerImpl* controller = SetUpHtmlAndInvoke(html); |
| 1758 ASSERT_TRUE(controller); | 1757 ASSERT_TRUE(controller); |
| 1759 | 1758 |
| 1760 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_); | 1759 EXPECT_EQ(ASCIIToUTF16("24"), controller->transaction_amount_); |
| 1761 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_); | 1760 EXPECT_EQ(ASCIIToUTF16("USD"), controller->transaction_currency_); |
| 1762 } | 1761 } |
| 1763 | 1762 |
| 1764 } // namespace autofill | 1763 } // namespace autofill |
| OLD | NEW |