OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/installer/setup/setup_util_unittest.h" | 5 #include "chrome/installer/setup/setup_util_unittest.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/process/kill.h" | 15 #include "base/process/kill.h" |
16 #include "base/process/launch.h" | 16 #include "base/process/launch.h" |
17 #include "base/process/process_handle.h" | 17 #include "base/process/process_handle.h" |
18 #include "base/test/test_reg_util_win.h" | 18 #include "base/test/test_reg_util_win.h" |
19 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/version.h" | 21 #include "base/version.h" |
22 #include "base/win/scoped_handle.h" | 22 #include "base/win/scoped_handle.h" |
23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
| 24 #include "chrome/installer/setup/setup_constants.h" |
24 #include "chrome/installer/setup/setup_util.h" | 25 #include "chrome/installer/setup/setup_util.h" |
25 #include "chrome/installer/setup/setup_constants.h" | |
26 #include "chrome/installer/util/google_update_constants.h" | 26 #include "chrome/installer/util/google_update_constants.h" |
27 #include "chrome/installer/util/installation_state.h" | 27 #include "chrome/installer/util/installation_state.h" |
28 #include "chrome/installer/util/installer_state.h" | 28 #include "chrome/installer/util/installer_state.h" |
29 #include "chrome/installer/util/util_constants.h" | 29 #include "chrome/installer/util/util_constants.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 class SetupUtilTestWithDir : public testing::Test { | 34 class SetupUtilTestWithDir : public testing::Test { |
35 protected: | 35 protected: |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 } | 487 } |
488 | 488 |
489 TEST(SetupUtilTest, ContainsUnsupportedSwitch) { | 489 TEST(SetupUtilTest, ContainsUnsupportedSwitch) { |
490 EXPECT_FALSE(installer::ContainsUnsupportedSwitch( | 490 EXPECT_FALSE(installer::ContainsUnsupportedSwitch( |
491 CommandLine::FromString(L"foo.exe"))); | 491 CommandLine::FromString(L"foo.exe"))); |
492 EXPECT_FALSE(installer::ContainsUnsupportedSwitch( | 492 EXPECT_FALSE(installer::ContainsUnsupportedSwitch( |
493 CommandLine::FromString(L"foo.exe --multi-install --chrome"))); | 493 CommandLine::FromString(L"foo.exe --multi-install --chrome"))); |
494 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( | 494 EXPECT_TRUE(installer::ContainsUnsupportedSwitch( |
495 CommandLine::FromString(L"foo.exe --chrome-frame"))); | 495 CommandLine::FromString(L"foo.exe --chrome-frame"))); |
496 } | 496 } |
OLD | NEW |