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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm

Issue 112913004: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698