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 <windows.h> | 5 #include <windows.h> |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "base/test/test_reg_util_win.h" | 8 #include "base/test/test_reg_util_win.h" |
| 9 #include "base/version.h" |
9 #include "base/win/registry.h" | 10 #include "base/win/registry.h" |
10 #include "chrome/installer/util/browser_distribution.h" | 11 #include "chrome/installer/util/browser_distribution.h" |
11 #include "chrome/installer/util/google_update_constants.h" | 12 #include "chrome/installer/util/google_update_constants.h" |
12 #include "chrome/installer/util/installation_state.h" | 13 #include "chrome/installer/util/installation_state.h" |
13 #include "chrome/installer/util/product_unittest.h" | 14 #include "chrome/installer/util/product_unittest.h" |
14 #include "chrome/installer/util/util_constants.h" | 15 #include "chrome/installer/util/util_constants.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 using base::win::RegKey; | 18 using base::win::RegKey; |
18 using installer::ProductState; | 19 using installer::ProductState; |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 | 405 |
405 // Uninstall command with --multi-install is multi install. | 406 // Uninstall command with --multi-install is multi install. |
406 { | 407 { |
407 ProductState state; | 408 ProductState state; |
408 ApplyUninstallCommand(L"setup.exe", | 409 ApplyUninstallCommand(L"setup.exe", |
409 L"--uninstall --chrome --multi-install"); | 410 L"--uninstall --chrome --multi-install"); |
410 EXPECT_TRUE(state.Initialize(system_install_, dist_)); | 411 EXPECT_TRUE(state.Initialize(system_install_, dist_)); |
411 EXPECT_TRUE(state.is_multi_install()); | 412 EXPECT_TRUE(state.is_multi_install()); |
412 } | 413 } |
413 } | 414 } |
OLD | NEW |