| 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/views/passwords/manage_passwords_view_test.h" | 5 #include "chrome/browser/ui/views/passwords/manage_passwords_view_test.h" |
| 6 | 6 |
| 7 #include "base/test/statistics_delta_reader.h" | |
| 8 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_command_controller.h" | 9 #include "chrome/browser/ui/browser_command_controller.h" |
| 11 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" |
| 12 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 11 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 15 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" | 14 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
| 16 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_view.h" | 15 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_view.h" |
| 17 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 16 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 autofill::PasswordFormMap map; | 96 autofill::PasswordFormMap map; |
| 98 map[kTestUsername] = test_form(); | 97 map[kTestUsername] = test_form(); |
| 99 controller()->OnBlacklistBlockedAutofill(map); | 98 controller()->OnBlacklistBlockedAutofill(map); |
| 100 controller()->UpdateIconAndBubbleState(view()); | 99 controller()->UpdateIconAndBubbleState(view()); |
| 101 } | 100 } |
| 102 | 101 |
| 103 base::HistogramSamples* ManagePasswordsViewTest::GetSamples( | 102 base::HistogramSamples* ManagePasswordsViewTest::GetSamples( |
| 104 const char* histogram) { | 103 const char* histogram) { |
| 105 // Ensure that everything has been properly recorded before pulling samples. | 104 // Ensure that everything has been properly recorded before pulling samples. |
| 106 content::RunAllPendingInMessageLoop(); | 105 content::RunAllPendingInMessageLoop(); |
| 107 return statistics_reader_.GetHistogramSamplesSinceCreation( | 106 return histogram_tester_.GetHistogramSamplesSinceCreation(histogram) |
| 108 histogram).release(); | 107 .release(); |
| 109 } | 108 } |
| OLD | NEW |