| 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 [[BookmarkSyncPromoController alloc] initWithBrowser:browser()]); | 24 [[BookmarkSyncPromoController alloc] initWithBrowser:browser()]); |
| 25 | 25 |
| 26 // Simulate clicking the "Sign in" link. | 26 // Simulate clicking the "Sign in" link. |
| 27 [syncPromo textView:nil clickedOnLink:nil atIndex:0u]; | 27 [syncPromo textView:nil clickedOnLink:nil atIndex:0u]; |
| 28 | 28 |
| 29 // A new tab should have been opened. | 29 // A new tab should have been opened. |
| 30 int tab_count = browser()->tab_strip_model()->count(); | 30 int tab_count = browser()->tab_strip_model()->count(); |
| 31 EXPECT_EQ(starting_tab_count + 1, tab_count); | 31 EXPECT_EQ(starting_tab_count + 1, tab_count); |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace | 34 } // namespace |
| OLD | NEW |