| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 using autofill::NewCreditCardBubbleView; | 25 using autofill::NewCreditCardBubbleView; |
| 26 using autofill::NewCreditCardBubbleController; | 26 using autofill::NewCreditCardBubbleController; |
| 27 using autofill::NewCreditCardBubbleCocoa; | 27 using autofill::NewCreditCardBubbleCocoa; |
| 28 using content::SiteInstance; | 28 using content::SiteInstance; |
| 29 using content::WebContents; | 29 using content::WebContents; |
| 30 | 30 |
| 31 namespace autofill { | 31 namespace autofill { |
| 32 | 32 |
| 33 class NewCreditCardBubbleCocoaUnitTest : public CocoaProfileTest { | 33 class NewCreditCardBubbleCocoaUnitTest : public CocoaProfileTest { |
| 34 public: | 34 public: |
| 35 virtual void SetUp() OVERRIDE { | 35 virtual void SetUp() override { |
| 36 CocoaProfileTest::SetUp(); | 36 CocoaProfileTest::SetUp(); |
| 37 ASSERT_TRUE(profile()); | 37 ASSERT_TRUE(profile()); |
| 38 | 38 |
| 39 site_instance_ = SiteInstance::Create(profile()); | 39 site_instance_ = SiteInstance::Create(profile()); |
| 40 } | 40 } |
| 41 | 41 |
| 42 NewCreditCardBubbleController* CreateController(WebContents* contents) { | 42 NewCreditCardBubbleController* CreateController(WebContents* contents) { |
| 43 return new NewCreditCardBubbleController(contents); | 43 return new NewCreditCardBubbleController(contents); |
| 44 } | 44 } |
| 45 | 45 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 ASSERT_TRUE(view.get()); | 79 ASSERT_TRUE(view.get()); |
| 80 | 80 |
| 81 view->Hide(); | 81 view->Hide(); |
| 82 autorelease_pool.Recycle(); | 82 autorelease_pool.Recycle(); |
| 83 ASSERT_FALSE(view.get()); | 83 ASSERT_FALSE(view.get()); |
| 84 | 84 |
| 85 // |controller| gets deleted via the bubble closing. | 85 // |controller| gets deleted via the bubble closing. |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // autofill | 88 } // autofill |
| OLD | NEW |