OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/google/google_update_win.h" | 5 #include "chrome/browser/google/google_update_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 | 10 |
11 #include <queue> | 11 #include <queue> |
12 | 12 |
13 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
16 #include "base/path_service.h" | 17 #include "base/path_service.h" |
17 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "base/test/scoped_path_override.h" | 20 #include "base/test/scoped_path_override.h" |
20 #include "base/test/test_reg_util_win.h" | 21 #include "base/test/test_reg_util_win.h" |
21 #include "base/test/test_simple_task_runner.h" | 22 #include "base/test/test_simple_task_runner.h" |
22 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
23 #include "base/version.h" | 24 #include "base/version.h" |
24 #include "base/win/registry.h" | 25 #include "base/win/registry.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 BeginUpdateCheck(task_runner_, std::string(), true, 0, | 1012 BeginUpdateCheck(task_runner_, std::string(), true, 0, |
1012 mock_update_check_delegate_.AsWeakPtr()); | 1013 mock_update_check_delegate_.AsWeakPtr()); |
1013 BeginUpdateCheck(task_runner_, std::string(), true, 0, | 1014 BeginUpdateCheck(task_runner_, std::string(), true, 0, |
1014 mock_update_check_delegate_2.AsWeakPtr()); | 1015 mock_update_check_delegate_2.AsWeakPtr()); |
1015 task_runner_->RunUntilIdle(); | 1016 task_runner_->RunUntilIdle(); |
1016 } | 1017 } |
1017 | 1018 |
1018 INSTANTIATE_TEST_CASE_P(UserLevel, GoogleUpdateWinTest, Values(false)); | 1019 INSTANTIATE_TEST_CASE_P(UserLevel, GoogleUpdateWinTest, Values(false)); |
1019 | 1020 |
1020 INSTANTIATE_TEST_CASE_P(SystemLevel, GoogleUpdateWinTest, Values(true)); | 1021 INSTANTIATE_TEST_CASE_P(SystemLevel, GoogleUpdateWinTest, Values(true)); |
OLD | NEW |