| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/cocoa/passwords/passwords_bubble_controller.h" | 5 #include "chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h" | 
| 6 | 6 | 
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> | 
| 8 | 8 | 
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" | 
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" | 
| 11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" | 
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" | 
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" | 
| 14 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 15 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 
| 16 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" | 15 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" | 
| 17 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h" | 16 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h" | 
| 18 #import "chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller
     .h" | 17 #import "chrome/browser/ui/cocoa/passwords/save_pending_password_view_controller
     .h" | 
| 19 #import "chrome/browser/ui/cocoa/passwords/signin_promo_view_controller.h" | 18 #import "chrome/browser/ui/cocoa/passwords/signin_promo_view_controller.h" | 
| 20 #import "chrome/browser/ui/cocoa/passwords/update_pending_password_view_controll
     er.h" | 19 #import "chrome/browser/ui/cocoa/passwords/update_pending_password_view_controll
     er.h" | 
|  | 20 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 21 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 21 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 
| 22 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 22 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 
| 23 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 23 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 
| 24 #include "components/variations/variations_associated_data.h" | 24 #include "components/variations/variations_associated_data.h" | 
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" | 
| 26 #include "testing/gtest_mac.h" | 26 #include "testing/gtest_mac.h" | 
| 27 #include "testing/platform_test.h" | 27 #include "testing/platform_test.h" | 
| 28 | 28 | 
| 29 namespace { | 29 namespace { | 
| 30 | 30 | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110   EXPECT_TRUE(saveController.saveButton); | 110   EXPECT_TRUE(saveController.saveButton); | 
| 111   [saveController.saveButton performClick:nil]; | 111   [saveController.saveButton performClick:nil]; | 
| 112   EXPECT_EQ([SignInPromoViewController class], | 112   EXPECT_EQ([SignInPromoViewController class], | 
| 113             [[controller() currentController] class]); | 113             [[controller() currentController] class]); | 
| 114   EXPECT_TRUE([[controller() window] isVisible]); | 114   EXPECT_TRUE([[controller() window] isVisible]); | 
| 115 | 115 | 
| 116   variations::testing::ClearAllVariationParams(); | 116   variations::testing::ClearAllVariationParams(); | 
| 117 } | 117 } | 
| 118 | 118 | 
| 119 }  // namespace | 119 }  // namespace | 
| OLD | NEW | 
|---|