OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/component_updater/component_updater_service.h" | 5 #include "components/component_updater/component_updater_service.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/test/histogram_tester.h" | 20 #include "base/test/histogram_tester.h" |
21 #include "base/test/sequenced_worker_pool_owner.h" | 21 #include "base/test/sequenced_worker_pool_owner.h" |
22 #include "base/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "components/component_updater/component_updater_service_internal.h" | 24 #include "components/component_updater/component_updater_service_internal.h" |
25 #include "components/update_client/test_configurator.h" | 25 #include "components/update_client/test_configurator.h" |
26 #include "components/update_client/test_installer.h" | 26 #include "components/update_client/test_installer.h" |
27 #include "components/update_client/update_client.h" | 27 #include "components/update_client/update_client.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 using Configurator = update_client::Configurator; | 31 using Configurator = update_client::Configurator; |
32 using TestConfigurator = update_client::TestConfigurator; | 32 using TestConfigurator = update_client::TestConfigurator; |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 base::Bind(&ComponentUpdaterTest::ReadyCallback)); | 375 base::Bind(&ComponentUpdaterTest::ReadyCallback)); |
376 | 376 |
377 RunThreads(); | 377 RunThreads(); |
378 | 378 |
379 ht.ExpectUniqueSample("ComponentUpdater.Calls", 0, 1); | 379 ht.ExpectUniqueSample("ComponentUpdater.Calls", 0, 1); |
380 ht.ExpectUniqueSample("ComponentUpdater.UpdateCompleteResult", 0, 1); | 380 ht.ExpectUniqueSample("ComponentUpdater.UpdateCompleteResult", 0, 1); |
381 ht.ExpectTotalCount("ComponentUpdater.UpdateCompleteTime", 1); | 381 ht.ExpectTotalCount("ComponentUpdater.UpdateCompleteTime", 1); |
382 } | 382 } |
383 | 383 |
384 } // namespace component_updater | 384 } // namespace component_updater |
OLD | NEW |