OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/downgrade/user_data_downgrade.h" | 5 #include "chrome/browser/downgrade/user_data_downgrade.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/test/test_reg_util_win.h" | 10 #include "base/test/test_reg_util_win.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" |
11 #include "base/version.h" | 12 #include "base/version.h" |
12 #include "base/win/registry.h" | 13 #include "base/win/registry.h" |
13 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
14 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
16 #include "chrome/installer/util/google_update_constants.h" | 17 #include "chrome/installer/util/google_update_constants.h" |
17 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 | 20 |
20 namespace downgrade { | 21 namespace downgrade { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 ASSERT_TRUE(base::PathExists(other_file_)); | 126 ASSERT_TRUE(base::PathExists(other_file_)); |
126 } | 127 } |
127 | 128 |
128 // Verify the "Last Version" file won't be created for non-msi install. | 129 // Verify the "Last Version" file won't be created for non-msi install. |
129 IN_PROC_BROWSER_TEST_F(UserDataDowngradeBrowserNoMSITest, Test) { | 130 IN_PROC_BROWSER_TEST_F(UserDataDowngradeBrowserNoMSITest, Test) { |
130 ASSERT_FALSE(base::PathExists(last_version_file_path_)); | 131 ASSERT_FALSE(base::PathExists(last_version_file_path_)); |
131 ASSERT_TRUE(base::PathExists(other_file_)); | 132 ASSERT_TRUE(base::PathExists(other_file_)); |
132 } | 133 } |
133 | 134 |
134 } // namespace downgrade | 135 } // namespace downgrade |
OLD | NEW |