| 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 <string> | 5 #include <string> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/test/test_reg_util_win.h" | 11 #include "base/test/test_reg_util_win.h" |
| 12 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
| 13 #include "chrome/installer/util/google_update_constants.h" | 13 #include "chrome/installer/util/google_update_constants.h" |
| 14 #include "chrome/installer/util/install_util.h" | 14 #include "chrome/installer/util/install_util.h" |
| 15 #include "chrome/installer/util/product_unittest.h" | 15 #include "chrome/installer/util/product_unittest.h" |
| 16 #include "chrome/installer/util/work_item.h" | 16 #include "chrome/installer/util/work_item.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 | 18 |
| 19 using base::win::RegKey; | 19 using base::win::RegKey; |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 WriteInto(&short_expect, MAX_PATH), | 447 WriteInto(&short_expect, MAX_PATH), |
| 448 MAX_PATH); | 448 MAX_PATH); |
| 449 ASSERT_NE(static_cast<DWORD>(0), short_len); | 449 ASSERT_NE(static_cast<DWORD>(0), short_len); |
| 450 ASSERT_GT(static_cast<DWORD>(MAX_PATH), short_len); | 450 ASSERT_GT(static_cast<DWORD>(MAX_PATH), short_len); |
| 451 short_expect.resize(short_len); | 451 short_expect.resize(short_len); |
| 452 ASSERT_FALSE(base::FilePath::CompareEqualIgnoreCase(expect.value(), | 452 ASSERT_FALSE(base::FilePath::CompareEqualIgnoreCase(expect.value(), |
| 453 short_expect)); | 453 short_expect)); |
| 454 EXPECT_TRUE(InstallUtil::ProgramCompare(expect).Evaluate( | 454 EXPECT_TRUE(InstallUtil::ProgramCompare(expect).Evaluate( |
| 455 L"\"" + short_expect + L"\"")); | 455 L"\"" + short_expect + L"\"")); |
| 456 } | 456 } |
| OLD | NEW |