| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_version_info.h" | 6 #include "base/file_version_info.h" |
| 7 #include "base/file_version_info_win.h" | 7 #include "base/file_version_info_win.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "base/win/registry.h" | 10 #include "base/win/registry.h" |
| 11 #include "chrome_frame/navigation_constraints.h" | 11 #include "chrome_frame/navigation_constraints.h" |
| 12 #include "chrome_frame/test/chrome_frame_test_utils.h" | 12 #include "chrome_frame/test/chrome_frame_test_utils.h" |
| 13 #include "chrome_frame/utils.h" | 13 #include "chrome_frame/utils.h" |
| 14 | 14 |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 | 17 |
| 18 using base::win::RegKey; | 18 using base::win::RegKey; |
| 19 using chrome_frame_test::TempRegKeyOverride; | 19 using reg_util::TempRegKeyOverride; |
| 20 | 20 |
| 21 const wchar_t kChannelName[] = L"-dev"; | 21 const wchar_t kChannelName[] = L"-dev"; |
| 22 const wchar_t kSuffix[] = L"-fix"; | 22 const wchar_t kSuffix[] = L"-fix"; |
| 23 | 23 |
| 24 // Registry override in the UtilsTest will cause shell APIs to fail | 24 // Registry override in the UtilsTest will cause shell APIs to fail |
| 25 // So separate this test from the rest | 25 // So separate this test from the rest |
| 26 TEST(SimpleUtilTests, GetTempInternetFiles) { | 26 TEST(SimpleUtilTests, GetTempInternetFiles) { |
| 27 FilePath path = GetIETemporaryFilesFolder(); | 27 FilePath path = GetIETemporaryFilesFolder(); |
| 28 EXPECT_FALSE(path.empty()); | 28 EXPECT_FALSE(path.empty()); |
| 29 } | 29 } |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 | 543 |
| 544 ASSERT_EQ(expect_match, | 544 ASSERT_EQ(expect_match, |
| 545 CheckXUaCompatibleDirective(test.header_value, | 545 CheckXUaCompatibleDirective(test.header_value, |
| 546 all_versions[version_index])) | 546 all_versions[version_index])) |
| 547 << "Expect '" << test.header_value << "' to " | 547 << "Expect '" << test.header_value << "' to " |
| 548 << (expect_match ? "match" : "not match") << " IE major version " | 548 << (expect_match ? "match" : "not match") << " IE major version " |
| 549 << all_versions[version_index]; | 549 << all_versions[version_index]; |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 } | 552 } |
| OLD | NEW |