Chromium Code Reviews| 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 <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 13 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 14 #include "chrome/browser/signin/fake_signin_manager_builder.h" | 14 #include "chrome/browser/signin/fake_signin_manager_builder.h" |
| 15 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
| 16 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" | 16 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" |
| 17 #include "chrome/test/base/browser_with_test_window_test.h" | 17 #include "chrome/test/base/browser_with_test_window_test.h" |
| 18 #include "components/bookmarks/browser/bookmark_utils.h" | 18 #include "components/bookmarks/browser/bookmark_utils.h" |
| 19 #include "components/bookmarks/test/bookmark_test_helpers.h" | 19 #include "components/bookmarks/test/bookmark_test_helpers.h" |
| 20 #include "components/signin/core/browser/signin_manager.h" | 20 #include "components/signin/core/browser/signin_manager.h" |
| 21 #include "ui/views/test/test_views_delegate.h" | |
|
Peter Kasting
2017/04/04 02:08:51
Nit: This #include doesn't seem necessary?
kylix_rd
2017/04/04 20:28:22
Done.
| |
| 21 | 22 |
| 22 using bookmarks::BookmarkModel; | 23 using bookmarks::BookmarkModel; |
| 23 | 24 |
| 24 namespace { | 25 namespace { |
| 25 const char kTestBookmarkURL[] = "http://www.google.com"; | 26 const char kTestBookmarkURL[] = "http://www.google.com"; |
| 26 } // namespace | 27 } // namespace |
| 27 | 28 |
| 28 class BookmarkBubbleViewTest : public BrowserWithTestWindowTest { | 29 class BookmarkBubbleViewTest : public BrowserWithTestWindowTest { |
| 29 public: | 30 public: |
| 30 BookmarkBubbleViewTest() {} | 31 BookmarkBubbleViewTest() {} |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 TEST_F(BookmarkBubbleViewTest, SyncPromoNotSignedIn) { | 96 TEST_F(BookmarkBubbleViewTest, SyncPromoNotSignedIn) { |
| 96 CreateBubbleView(); | 97 CreateBubbleView(); |
| 97 bubble_->Init(); | 98 bubble_->Init(); |
| 98 std::unique_ptr<views::View> footnote(bubble_->CreateFootnoteView()); | 99 std::unique_ptr<views::View> footnote(bubble_->CreateFootnoteView()); |
| 99 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
| 100 EXPECT_FALSE(footnote); | 101 EXPECT_FALSE(footnote); |
| 101 #else // !defined(OS_CHROMEOS) | 102 #else // !defined(OS_CHROMEOS) |
| 102 EXPECT_TRUE(footnote); | 103 EXPECT_TRUE(footnote); |
| 103 #endif | 104 #endif |
| 104 } | 105 } |
| OLD | NEW |