| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/logging.h" | 5 #include "base/logging.h" | 
| 6 #import "base/mac/foundation_util.h" | 6 #import "base/mac/foundation_util.h" | 
| 7 #import "base/mac/scoped_nsobject.h" | 7 #import "base/mac/scoped_nsobject.h" | 
| 8 #include "base/macros.h" | 8 #include "base/macros.h" | 
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" | 
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" | 
| 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 12 #import "chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h" | 11 #import "chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h" | 
| 13 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 12 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
|  | 13 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" | 
| 14 #include "chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.h" | 14 #include "chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.h" | 
| 15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" | 
| 16 #include "components/grit/components_scaled_resources.h" | 16 #include "components/grit/components_scaled_resources.h" | 
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" | 
| 18 #import "ui/events/test/cocoa_test_event_utils.h" | 18 #import "ui/events/test/cocoa_test_event_utils.h" | 
| 19 #include "ui/gfx/vector_icons_public.h" | 19 #include "ui/gfx/vector_icons_public.h" | 
| 20 | 20 | 
| 21 // A simple class to observe when a window is destructing. | 21 // A simple class to observe when a window is destructing. | 
| 22 @interface WindowObserver : NSObject { | 22 @interface WindowObserver : NSObject { | 
| 23   BOOL windowIsClosing_; | 23   BOOL windowIsClosing_; | 
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 319     EXPECT_FALSE([bubble iconView]); | 319     EXPECT_FALSE([bubble iconView]); | 
| 320     EXPECT_FALSE([bubble label]); | 320     EXPECT_FALSE([bubble label]); | 
| 321     EXPECT_TRUE([bubble link]); | 321     EXPECT_TRUE([bubble link]); | 
| 322     EXPECT_TRUE([bubble dismissButton]); | 322     EXPECT_TRUE([bubble dismissButton]); | 
| 323     EXPECT_TRUE([bubble itemList]); | 323     EXPECT_TRUE([bubble itemList]); | 
| 324 | 324 | 
| 325     [bubble close]; | 325     [bubble close]; | 
| 326     chrome::testing::NSRunLoopRunAllPending(); | 326     chrome::testing::NSRunLoopRunAllPending(); | 
| 327   } | 327   } | 
| 328 } | 328 } | 
| OLD | NEW | 
|---|