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/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.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/test_notification_tracker.h" | 15 #include "chrome/test/base/test_notification_tracker.h" |
16 #include "chrome/test/test_url_request_context_getter.h" | 16 #include "chrome/test/base/test_url_request_context_getter.h" |
17 #include "content/common/notification_observer.h" | 17 #include "content/common/notification_observer.h" |
18 #include "content/common/notification_service.h" | 18 #include "content/common/notification_service.h" |
19 #include "content/test/test_url_fetcher_factory.h" | 19 #include "content/test/test_url_fetcher_factory.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 | 21 |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 // Overrides some of the component updater behaviors so it is easier | 25 // Overrides some of the component updater behaviors so it is easier |
26 // to test and loops faster. | 26 // to test and loops faster. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 TestNotificationTracker notification_tracker_; | 117 TestNotificationTracker notification_tracker_; |
118 // Note that the shadow |at_exit_manager_| will cause the destruction | 118 // Note that the shadow |at_exit_manager_| will cause the destruction |
119 // of the component updater when this object is destroyed. | 119 // of the component updater when this object is destroyed. |
120 base::ShadowingAtExitManager at_exit_manager_; | 120 base::ShadowingAtExitManager at_exit_manager_; |
121 }; | 121 }; |
122 | 122 |
123 TEST_F(ComponentUpdaterTest, EmptyTest) { | 123 TEST_F(ComponentUpdaterTest, EmptyTest) { |
124 EXPECT_EQ(0ul, notification_tracker().size()); | 124 EXPECT_EQ(0ul, notification_tracker().size()); |
125 } | 125 } |
126 | 126 |
OLD | NEW |