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