| 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/message_loop.h" |
| 10 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 11 #include "base/values.h" | 12 #include "base/values.h" |
| 12 #include "chrome/browser/component_updater/component_updater_interceptor.h" | 13 #include "chrome/browser/component_updater/component_updater_interceptor.h" |
| 13 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
| 14 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/test/base/test_url_request_context_getter.h" | 16 #include "chrome/test/base/test_url_request_context_getter.h" |
| 16 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 18 #include "content/test/test_browser_thread.h" | 19 #include "content/test/test_browser_thread.h" |
| 19 #include "content/public/common/url_fetcher.h" | 20 #include "content/public/common/url_fetcher.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 test_configurator()->SetLoopCount(1); | 405 test_configurator()->SetLoopCount(1); |
| 405 component_updater()->Start(); | 406 component_updater()->Start(); |
| 406 message_loop.Run(); | 407 message_loop.Run(); |
| 407 | 408 |
| 408 EXPECT_EQ(1, interceptor->hit_count()); | 409 EXPECT_EQ(1, interceptor->hit_count()); |
| 409 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); | 410 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); |
| 410 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); | 411 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); |
| 411 | 412 |
| 412 component_updater()->Stop(); | 413 component_updater()->Stop(); |
| 413 } | 414 } |
| OLD | NEW |