diff options
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_frame.gyp | 1 | ||||
-rw-r--r-- | chrome_frame/test/util_unittests.cc | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame.gyp b/chrome_frame/chrome_frame.gyp index 9a53fe9..9d62c56 100644 --- a/chrome_frame/chrome_frame.gyp +++ b/chrome_frame/chrome_frame.gyp @@ -705,6 +705,7 @@ 'chrome_frame_utils', 'chrome_launcher', 'xulrunner_sdk', + '../chrome/chrome.gyp:chrome_version_info', '../chrome/chrome.gyp:common', '../chrome/chrome.gyp:utility', '../build/temp_gyp/googleurl.gyp:googleurl', diff --git a/chrome_frame/test/util_unittests.cc b/chrome_frame/test/util_unittests.cc index c589416..8780d3d 100644 --- a/chrome_frame/test/util_unittests.cc +++ b/chrome_frame/test/util_unittests.cc @@ -3,6 +3,7 @@ // found in the LICENSE file. #include "base/file_version_info.h" +#include "base/file_version_info_win.h" #include "chrome_frame/utils.h" #include "testing/gtest/include/gtest/gtest.h" @@ -27,7 +28,9 @@ TEST(UtilTests, GetModuleVersionTest) { EXPECT_NE(low, 0); // Make sure they give the same results. - VS_FIXEDFILEINFO* fixed_info = base_info->fixed_file_info(); + FileVersionInfoWin* base_info_win = + static_cast<FileVersionInfoWin*>(base_info.get()); + VS_FIXEDFILEINFO* fixed_info = base_info_win->fixed_file_info(); EXPECT_TRUE(fixed_info != NULL); EXPECT_EQ(fixed_info->dwFileVersionMS, static_cast<DWORD>(high)); |