| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" | 9 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" |
| 10 #include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h" | 10 #include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 EXPECT_CALL(delegate_, InputsAreValid(_, _)) | 49 EXPECT_CALL(delegate_, InputsAreValid(_, _)) |
| 50 .Times(3) | 50 .Times(3) |
| 51 .WillOnce(Return(validity)) | 51 .WillOnce(Return(validity)) |
| 52 .WillOnce(Return(validity)) | 52 .WillOnce(Return(validity)) |
| 53 .WillOnce(Return(validity)); | 53 .WillOnce(Return(validity)); |
| 54 | 54 |
| 55 EXPECT_TRUE([container_ validate]); | 55 EXPECT_TRUE([container_ validate]); |
| 56 | 56 |
| 57 ValidityMessages invalid; | 57 ValidityMessages invalid; |
| 58 invalid.Set(ADDRESS_HOME_ZIP, | 58 invalid.Set(ADDRESS_HOME_ZIP, |
| 59 ValidityMessage(ASCIIToUTF16("Some error message"), false)); | 59 ValidityMessage(base::ASCIIToUTF16("Some error message"), false)); |
| 60 | 60 |
| 61 EXPECT_CALL(delegate_, InputsAreValid(_, _)) | 61 EXPECT_CALL(delegate_, InputsAreValid(_, _)) |
| 62 .Times(3) | 62 .Times(3) |
| 63 .WillOnce(Return(validity)) | 63 .WillOnce(Return(validity)) |
| 64 .WillOnce(Return(validity)) | 64 .WillOnce(Return(validity)) |
| 65 .WillOnce(Return(invalid)); | 65 .WillOnce(Return(invalid)); |
| 66 | 66 |
| 67 EXPECT_FALSE([container_ validate]); | 67 EXPECT_FALSE([container_ validate]); |
| 68 } | 68 } |
| OLD | NEW |