OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/component_updater/component_updater_service.h" | 5 #include "chrome/browser/component_updater/component_updater_service.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/component_updater/component_updater_interceptor.h" | 12 #include "chrome/browser/component_updater/component_updater_interceptor.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
15 #include "chrome/test/base/test_notification_tracker.h" | 15 #include "chrome/test/base/test_notification_tracker.h" |
16 #include "chrome/test/base/test_url_request_context_getter.h" | 16 #include "chrome/test/base/test_url_request_context_getter.h" |
17 #include "chrome/test/testing_browser_process_test.h" | 17 #include "chrome/test/base/testing_browser_process_test.h" |
18 #include "content/browser/browser_thread.h" | 18 #include "content/browser/browser_thread.h" |
19 #include "content/common/notification_observer.h" | 19 #include "content/common/notification_observer.h" |
20 #include "content/common/notification_service.h" | 20 #include "content/common/notification_service.h" |
21 #include "content/common/url_fetcher.h" | 21 #include "content/common/url_fetcher.h" |
22 | 22 |
23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
24 #include "libxml/globals.h" | 24 #include "libxml/globals.h" |
25 | 25 |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 EXPECT_EQ(chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING, ev3.type); | 336 EXPECT_EQ(chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING, ev3.type); |
337 | 337 |
338 EXPECT_EQ(0, static_cast<TestInstaller*>(com1.installer)->error()); | 338 EXPECT_EQ(0, static_cast<TestInstaller*>(com1.installer)->error()); |
339 EXPECT_EQ(1, static_cast<TestInstaller*>(com1.installer)->install_count()); | 339 EXPECT_EQ(1, static_cast<TestInstaller*>(com1.installer)->install_count()); |
340 | 340 |
341 component_updater()->Stop(); | 341 component_updater()->Stop(); |
342 delete com1.installer; | 342 delete com1.installer; |
343 delete com2.installer; | 343 delete com2.installer; |
344 xmlCleanupGlobals(); | 344 xmlCleanupGlobals(); |
345 } | 345 } |
OLD | NEW |