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

Side by Side Diff: chrome/installer/setup/install_worker_unittest.cc

Issue 1220133003: Fixed all unused-variable Clang warnings on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iaccessible2-fix-gn
Patch Set: Fix GYP build with -Wunused-variable. Created 5 years, 5 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 "chrome/installer/setup/install_worker.h" 5 #include "chrome/installer/setup/install_worker.h"
6 6
7 #include "base/win/registry.h" 7 #include "base/win/registry.h"
8 #include "base/version.h" 8 #include "base/version.h"
9 #include "chrome/common/chrome_constants.h" 9 #include "chrome/common/chrome_constants.h"
10 #include "chrome/installer/setup/setup_util.h" 10 #include "chrome/installer/setup/setup_util.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 archive_path_, 466 archive_path_,
467 src_path_, 467 src_path_,
468 temp_dir_, 468 temp_dir_,
469 current_version_.get(), 469 current_version_.get(),
470 *new_version_.get(), 470 *new_version_.get(),
471 &work_item_list); 471 &work_item_list);
472 } 472 }
473 473
474 namespace { 474 namespace {
475 475
476 const wchar_t elevation_key[] =
477 L"SOFTWARE\\Microsoft\\Internet Explorer\\Low Rights\\ElevationPolicy\\"
478 L"{E0A900DF-9611-4446-86BD-4B1D47E7DB2A}";
479 const wchar_t old_elevation_key[] = 476 const wchar_t old_elevation_key[] =
480 L"SOFTWARE\\Microsoft\\Internet Explorer\\Low Rights\\ElevationPolicy\\" 477 L"SOFTWARE\\Microsoft\\Internet Explorer\\Low Rights\\ElevationPolicy\\"
481 L"{6C288DD7-76FB-4721-B628-56FAC252E199}"; 478 L"{6C288DD7-76FB-4721-B628-56FAC252E199}";
482 479
483 } // namespace 480 } // namespace
484 481
485 // A test class for worker functions that manipulate the old IE low rights 482 // A test class for worker functions that manipulate the old IE low rights
486 // policies. 483 // policies.
487 // Parameters: 484 // Parameters:
488 // bool : system_level_ 485 // bool : system_level_
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 prod_type_list[i_type_check]); 794 prod_type_list[i_type_check]);
798 bool prod_expect = (mach_after & (1 << i_type_check)) != 0; 795 bool prod_expect = (mach_after & (1 << i_type_check)) != 0;
799 EXPECT_EQ(prod_expect, prod_res); 796 EXPECT_EQ(prod_expect, prod_res);
800 } 797 }
801 } 798 }
802 } 799 }
803 } 800 }
804 } 801 }
805 802
806 #endif // defined(GOOGLE_CHROME_BUILD) 803 #endif // defined(GOOGLE_CHROME_BUILD)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698