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/signin/signin_error_notifier_ash.h" | 5 #include "chrome/browser/signin/signin_error_notifier_ash.h" |
6 | 6 |
7 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
11 #include "chrome/browser/notifications/notification_ui_manager.h" | 11 #include "chrome/browser/notifications/notification_ui_manager.h" |
12 #include "chrome/browser/signin/fake_auth_status_provider.h" | |
13 #include "chrome/browser/signin/fake_signin_manager.h" | 12 #include "chrome/browser/signin/fake_signin_manager.h" |
14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
15 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h" | 14 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h" |
16 #include "chrome/browser/signin/signin_manager.h" | 15 #include "chrome/browser/signin/signin_manager.h" |
17 #include "chrome/browser/signin/signin_manager_factory.h" | 16 #include "chrome/browser/signin/signin_manager_factory.h" |
18 #include "chrome/browser/ui/ash/test_views_delegate_with_parent.h" | 17 #include "chrome/browser/ui/ash/test_views_delegate_with_parent.h" |
19 #include "chrome/test/base/testing_browser_process.h" | 18 #include "chrome/test/base/testing_browser_process.h" |
20 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
21 #include "chrome/test/base/testing_profile_manager.h" | 20 #include "chrome/test/base/testing_profile_manager.h" |
| 21 #include "components/signin/core/browser/fake_auth_status_provider.h" |
22 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 22 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
23 #include "components/signin/core/browser/signin_error_controller.h" | 23 #include "components/signin/core/browser/signin_error_controller.h" |
24 #include "content/public/test/test_browser_thread_bundle.h" | 24 #include "content/public/test/test_browser_thread_bundle.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "ui/message_center/notification.h" | 26 #include "ui/message_center/notification.h" |
27 | 27 |
28 #if !defined(OS_CHROMEOS) | 28 #if !defined(OS_CHROMEOS) |
29 #include "chrome/browser/ui/ash/ash_util.h" | 29 #include "chrome/browser/ui/ash/ash_util.h" |
30 #include "ui/aura/test/test_screen.h" | 30 #include "ui/aura/test/test_screen.h" |
31 #include "ui/gfx/screen.h" | 31 #include "ui/gfx/screen.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 if (table[i].is_error) { | 212 if (table[i].is_error) { |
213 EXPECT_FALSE(notification->title().empty()); | 213 EXPECT_FALSE(notification->title().empty()); |
214 EXPECT_FALSE(notification->message().empty()); | 214 EXPECT_FALSE(notification->message().empty()); |
215 EXPECT_EQ((size_t)1, notification->buttons().size()); | 215 EXPECT_EQ((size_t)1, notification->buttons().size()); |
216 } | 216 } |
217 } | 217 } |
218 } | 218 } |
219 | 219 |
220 } // namespace test | 220 } // namespace test |
221 } // namespace ash | 221 } // namespace ash |
OLD | NEW |