Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm |
index f04fb01087c66760c7b944978bf3edb12113af14..389c6798cd73b310acb1aff6553d0883156b42c2 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm |
@@ -10,12 +10,16 @@ |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/test/base/in_process_browser_test.h" |
+#include "components/autofill/browser/autofill_common_test.h" |
#include "components/autofill/common/form_data.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
#include "content/public/test/test_utils.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+// TODO(groby): This entire file can be removed once the dialog supports the |
+// cross-platform tests at AutofillDialogControllerTest.* |
+ |
namespace autofill { |
namespace { |
@@ -75,6 +79,9 @@ class AutofillDialogCocoaBrowserTest : public InProcessBrowserTest { |
virtual ~AutofillDialogCocoaBrowserTest() {} |
virtual void SetUpOnMainThread() OVERRIDE { |
+ // Ensure OSX does not pop up a modal dialog for Address Book. |
+ autofill::test::DisableSystemServices(NULL); |
+ |
FormFieldData field; |
field.autocomplete_attribute = "cc-number"; |
FormData form_data; |
@@ -101,15 +108,7 @@ class AutofillDialogCocoaBrowserTest : public InProcessBrowserTest { |
DISALLOW_COPY_AND_ASSIGN(AutofillDialogCocoaBrowserTest); |
}; |
-// The following test fails under ASAN. Disabling until root cause is found. |
-// This can pop up a "browser_tests would like access to your Contacts" dialog. |
-// See also http://crbug.com/234008. |
-#if defined(ADDRESS_SANITIZER) |
-#define MAYBE_DisplayUI DISABLED_DisplayUI |
-#else |
-#define MAYBE_DisplayUI DisplayUI |
-#endif |
-IN_PROC_BROWSER_TEST_F(AutofillDialogCocoaBrowserTest, MAYBE_DisplayUI) { |
+IN_PROC_BROWSER_TEST_F(AutofillDialogCocoaBrowserTest, DisplayUI) { |
controller()->Show(); |
controller()->view()->CancelForTesting(); |