Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(650)

Side by Side Diff: chrome/installer/util/install_util_unittest.cc

Issue 497083004: Change base/file_utils.h includes to base/files/file_utils.h in chrome/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@file_util
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698