| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/callback.h" | 6 #include "base/callback.h" |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 | 1739 |
| 1740 private: | 1740 private: |
| 1741 int press_count_; | 1741 int press_count_; |
| 1742 | 1742 |
| 1743 DISALLOW_COPY_AND_ASSIGN(TestViewForMenuExit); | 1743 DISALLOW_COPY_AND_ASSIGN(TestViewForMenuExit); |
| 1744 }; | 1744 }; |
| 1745 | 1745 |
| 1746 TestViewForMenuExit* test_view_; | 1746 TestViewForMenuExit* test_view_; |
| 1747 }; | 1747 }; |
| 1748 | 1748 |
| 1749 #if defined(OS_WIN) && !defined(USE_AURA) | 1749 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 1750 #define MAYBE_ContextMenuExitTest DISABLED_ContextMenuExitTest | |
| 1751 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | |
| 1752 // TODO(erg): linux_aura bringup: http://crbug.com/163931 | 1750 // TODO(erg): linux_aura bringup: http://crbug.com/163931 |
| 1753 #define MAYBE_ContextMenuExitTest DISABLED_ContextMenuExitTest | 1751 #define MAYBE_ContextMenuExitTest DISABLED_ContextMenuExitTest |
| 1754 #else | 1752 #else |
| 1755 #define MAYBE_ContextMenuExitTest ContextMenuExitTest | 1753 #define MAYBE_ContextMenuExitTest ContextMenuExitTest |
| 1756 #endif | 1754 #endif |
| 1757 | 1755 |
| 1758 VIEW_TEST(BookmarkBarViewTest20, MAYBE_ContextMenuExitTest) | 1756 VIEW_TEST(BookmarkBarViewTest20, MAYBE_ContextMenuExitTest) |
| 1759 | 1757 |
| 1760 // Tests context menu by way of opening a context menu for a empty folder menu. | 1758 // Tests context menu by way of opening a context menu for a empty folder menu. |
| 1761 // The opened context menu should behave as it is from the folder button. | 1759 // The opened context menu should behave as it is from the folder button. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 EXPECT_TRUE(bb_view_->GetContextMenu() == NULL); | 1820 EXPECT_TRUE(bb_view_->GetContextMenu() == NULL); |
| 1823 EXPECT_TRUE(bb_view_->GetMenu() == NULL); | 1821 EXPECT_TRUE(bb_view_->GetMenu() == NULL); |
| 1824 | 1822 |
| 1825 Done(); | 1823 Done(); |
| 1826 } | 1824 } |
| 1827 | 1825 |
| 1828 ContextMenuNotificationObserver observer_; | 1826 ContextMenuNotificationObserver observer_; |
| 1829 }; | 1827 }; |
| 1830 | 1828 |
| 1831 VIEW_TEST(BookmarkBarViewTest21, ContextMenusForEmptyFolder) | 1829 VIEW_TEST(BookmarkBarViewTest21, ContextMenusForEmptyFolder) |
| OLD | NEW |