| 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/protector/mock_setting_change.h" | 9 #include "chrome/browser/protector/mock_setting_change.h" |
| 10 #include "chrome/browser/protector/protector_service.h" | 10 #include "chrome/browser/protector/protector_service.h" |
| 11 #include "chrome/browser/protector/protector_service_factory.h" | 11 #include "chrome/browser/protector/protector_service_factory.h" |
| 12 #include "chrome/browser/protector/settings_change_global_error.h" | 12 #include "chrome/browser/protector/settings_change_global_error.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/global_error.h" | 14 #include "chrome/browser/ui/global_error/global_error.h" |
| 15 #include "chrome/browser/ui/global_error_bubble_view_base.h" | 15 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
| 16 #include "chrome/browser/ui/global_error_service.h" | 16 #include "chrome/browser/ui/global_error/global_error_service.h" |
| 17 #include "chrome/browser/ui/global_error_service_factory.h" | 17 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
| 21 | 21 |
| 22 using ::testing::InvokeWithoutArgs; | 22 using ::testing::InvokeWithoutArgs; |
| 23 using ::testing::NiceMock; | 23 using ::testing::NiceMock; |
| 24 using ::testing::Return; | 24 using ::testing::Return; |
| 25 | 25 |
| 26 namespace protector { | 26 namespace protector { |
| 27 | 27 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 | 647 |
| 648 protector_service_->DismissChange(composite_change); | 648 protector_service_->DismissChange(composite_change); |
| 649 ui_test_utils::RunAllPendingInMessageLoop(); | 649 ui_test_utils::RunAllPendingInMessageLoop(); |
| 650 EXPECT_FALSE(IsGlobalErrorActive(composite_change)); | 650 EXPECT_FALSE(IsGlobalErrorActive(composite_change)); |
| 651 EXPECT_FALSE(protector_service_->GetLastChange()); | 651 EXPECT_FALSE(protector_service_->GetLastChange()); |
| 652 } | 652 } |
| 653 | 653 |
| 654 // TODO(ivankr): Timeout test. | 654 // TODO(ivankr): Timeout test. |
| 655 | 655 |
| 656 } // namespace protector | 656 } // namespace protector |
| OLD | NEW |