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 <list> | 5 #include <list> |
6 #include <utility> | 6 #include <utility> |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/component_updater/component_updater_service.h" | 16 #include "chrome/browser/component_updater/component_updater_service.h" |
17 #include "chrome/browser/component_updater/test/component_patcher_mock.h" | 17 #include "chrome/browser/component_updater/test/component_patcher_mock.h" |
18 #include "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" | 18 #include "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" |
19 #include "chrome/browser/component_updater/test/test_installer.h" | 19 #include "chrome/browser/component_updater/test/test_installer.h" |
20 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 component_updater()->Start(); | 840 component_updater()->Start(); |
841 message_loop.Run(); | 841 message_loop.Run(); |
842 | 842 |
843 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); | 843 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); |
844 EXPECT_EQ(2, static_cast<TestInstaller*>(com.installer)->install_count()); | 844 EXPECT_EQ(2, static_cast<TestInstaller*>(com.installer)->install_count()); |
845 | 845 |
846 EXPECT_EQ(6, interceptor.GetHitCount()); | 846 EXPECT_EQ(6, interceptor.GetHitCount()); |
847 | 847 |
848 component_updater()->Stop(); | 848 component_updater()->Stop(); |
849 } | 849 } |
OLD | NEW |