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

Unified Diff: chrome_frame/test/util_unittests.cc

Issue 1560027: Refactor FileVersionInfo into an interface with platform implementations. (Closed)
Patch Set: comments Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | webkit/glue/plugins/plugin_lib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/util_unittests.cc
diff --git a/chrome_frame/test/util_unittests.cc b/chrome_frame/test/util_unittests.cc
index c5894169570984d95e0afbff1bb7fef0dfcdc808..8780d3dd19ca84c265caa986737b5f77715dcb01 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));
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | webkit/glue/plugins/plugin_lib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698