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

Unified Diff: chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm

Issue 2673006: AutoFill Profiles dialog implemented according to new mocks on Mac (Closed)
Patch Set: Revisions based on review comments. Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_address_view_controller_mac_unittest.mm b/chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm
similarity index 65%
rename from chrome/browser/autofill/autofill_address_view_controller_mac_unittest.mm
rename to chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm
index b5c857c1c59b8ab6cf26f218bf17c5b3af7e1e6d..f46425d62a310a85f2d3cbc75c16c007979f3442 100644
--- a/chrome/browser/autofill/autofill_address_view_controller_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "base/scoped_nsobject.h"
-#import "chrome/browser/autofill/autofill_address_view_controller_mac.h"
+#import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/cocoa/browser_test_helper.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
@@ -11,17 +11,16 @@
namespace {
-typedef CocoaTest AutoFillAddressViewControllerTest;
+typedef CocoaTest AutoFillAddressSheetControllerTest;
-TEST(AutoFillAddressViewControllerTest, Basic) {
+TEST(AutoFillAddressSheetControllerTest, Basic) {
// A basic test that creates a new instance and releases.
// Aids valgrind leak detection.
AutoFillProfile profile(ASCIIToUTF16("Home"), 0);
- scoped_nsobject<AutoFillAddressViewController> controller(
- [[AutoFillAddressViewController alloc]
+ scoped_nsobject<AutoFillAddressSheetController> controller(
+ [[AutoFillAddressSheetController alloc]
initWithProfile:profile
- disclosure:NSOffState
- controller:nil]);
+ mode:kAutoFillAddressAddMode]);
EXPECT_TRUE(controller.get());
}

Powered by Google App Engine
This is Rietveld 408576698