| 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/views/bookmarks/bookmark_bubble_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "build/build_config.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 11 #include "chrome/browser/signin/fake_signin_manager_builder.h" | 13 #include "chrome/browser/signin/fake_signin_manager_builder.h" |
| 12 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
| 13 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" | 15 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" |
| 14 #include "chrome/test/base/browser_with_test_window_test.h" | 16 #include "chrome/test/base/browser_with_test_window_test.h" |
| 15 #include "components/bookmarks/browser/bookmark_utils.h" | 17 #include "components/bookmarks/browser/bookmark_utils.h" |
| 16 #include "components/bookmarks/test/bookmark_test_helpers.h" | 18 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 17 #include "components/signin/core/browser/signin_manager.h" | 19 #include "components/signin/core/browser/signin_manager.h" |
| 18 | 20 |
| 19 using bookmarks::BookmarkModel; | 21 using bookmarks::BookmarkModel; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Verifies that the sync promo is displayed for a user that is not signed in. | 95 // Verifies that the sync promo is displayed for a user that is not signed in. |
| 94 TEST_F(BookmarkBubbleViewTest, SyncPromoNotSignedIn) { | 96 TEST_F(BookmarkBubbleViewTest, SyncPromoNotSignedIn) { |
| 95 CreateBubbleView(); | 97 CreateBubbleView(); |
| 96 bubble_->Init(); | 98 bubble_->Init(); |
| 97 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
| 98 EXPECT_FALSE(bubble_->sync_promo_view_); | 100 EXPECT_FALSE(bubble_->sync_promo_view_); |
| 99 #else // !defined(OS_CHROMEOS) | 101 #else // !defined(OS_CHROMEOS) |
| 100 EXPECT_TRUE(bubble_->sync_promo_view_); | 102 EXPECT_TRUE(bubble_->sync_promo_view_); |
| 101 #endif | 103 #endif |
| 102 } | 104 } |
| OLD | NEW |