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

Side by Side Diff: ios/chrome/browser/autofill/form_suggestion_controller_unittest.mm

Issue 2752113002: Moved WebView(ScrollView)Proxy files to ui subdirectory. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/chrome/browser/autofill/form_suggestion_controller.h" 5 #import "ios/chrome/browser/autofill/form_suggestion_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/ios/ios_util.h" 10 #include "base/ios/ios_util.h"
11 #include "base/mac/foundation_util.h" 11 #include "base/mac/foundation_util.h"
12 #import "components/autofill/ios/browser/form_suggestion.h" 12 #import "components/autofill/ios/browser/form_suggestion.h"
13 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" 13 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h"
14 #import "ios/chrome/browser/autofill/form_suggestion_provider.h" 14 #import "ios/chrome/browser/autofill/form_suggestion_provider.h"
15 #import "ios/chrome/browser/autofill/form_suggestion_view.h" 15 #import "ios/chrome/browser/autofill/form_suggestion_view.h"
16 #include "ios/chrome/browser/ui/ui_util.h" 16 #include "ios/chrome/browser/ui/ui_util.h"
17 #import "ios/chrome/browser/web/chrome_web_test.h" 17 #import "ios/chrome/browser/web/chrome_web_test.h"
18 #include "ios/chrome/test/base/scoped_block_swizzler.h" 18 #include "ios/chrome/test/base/scoped_block_swizzler.h"
19 #import "ios/web/public/web_state/crw_web_view_proxy.h" 19 #import "ios/web/public/web_state/ui/crw_web_view_proxy.h"
20 #import "ios/web/web_state/ui/crw_web_controller.h" 20 #import "ios/web/web_state/ui/crw_web_controller.h"
21 #import "testing/gtest_mac.h" 21 #import "testing/gtest_mac.h"
22 #import "third_party/ocmock/OCMock/OCMock.h" 22 #import "third_party/ocmock/OCMock/OCMock.h"
23 #include "third_party/ocmock/gtest_support.h" 23 #include "third_party/ocmock/gtest_support.h"
24 24
25 #if !defined(__has_feature) || !__has_feature(objc_arc) 25 #if !defined(__has_feature) || !__has_feature(objc_arc)
26 #error "This file requires ARC support." 26 #error "This file requires ARC support."
27 #endif 27 #endif
28 28
29 @interface FormInputAccessoryViewController (Testing) 29 @interface FormInputAccessoryViewController (Testing)
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 // Selecting a suggestion should notify the delegate. 431 // Selecting a suggestion should notify the delegate.
432 [suggestion_controller_ didSelectSuggestion:suggestions[0]]; 432 [suggestion_controller_ didSelectSuggestion:suggestions[0]];
433 EXPECT_TRUE([provider selected]); 433 EXPECT_TRUE([provider selected]);
434 EXPECT_NSEQ(@"form", [provider formName]); 434 EXPECT_NSEQ(@"form", [provider formName]);
435 EXPECT_NSEQ(@"field", [provider fieldName]); 435 EXPECT_NSEQ(@"field", [provider fieldName]);
436 EXPECT_NSEQ(suggestions[0], [provider suggestion]); 436 EXPECT_NSEQ(suggestions[0], [provider suggestion]);
437 } 437 }
438 438
439 } // namespace 439 } // namespace
OLDNEW
« no previous file with comments | « ios/chrome/browser/autofill/form_suggestion_controller.mm ('k') | ios/chrome/browser/find_in_page/find_in_page_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698