OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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" | |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/stringprintf.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" |
24 #include "content/public/test/test_browser_thread.h" | 24 #include "content/public/test/test_browser_thread.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 component_updater()->Start(); | 92 component_updater()->Start(); |
93 message_loop.Run(); | 93 message_loop.Run(); |
94 | 94 |
95 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); | 95 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); |
96 EXPECT_EQ(2, static_cast<TestInstaller*>(com.installer)->install_count()); | 96 EXPECT_EQ(2, static_cast<TestInstaller*>(com.installer)->install_count()); |
97 | 97 |
98 EXPECT_EQ(5, interceptor.GetHitCount()); | 98 EXPECT_EQ(5, interceptor.GetHitCount()); |
99 | 99 |
100 component_updater()->Stop(); | 100 component_updater()->Stop(); |
101 } | 101 } |
OLD | NEW |