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

Unified Diff: chrome/installer/util/browser_distribution_unittest.cc

Issue 6288009: More installer refactoring in the interest of fixing some bugs and cleaning t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/installer/util/browser_distribution.cc ('k') | chrome/installer/util/channel_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/browser_distribution_unittest.cc
===================================================================
--- chrome/installer/util/browser_distribution_unittest.cc (revision 72487)
+++ chrome/installer/util/browser_distribution_unittest.cc (working copy)
@@ -5,7 +5,6 @@
// Unit tests for BrowserDistribution class.
#include "chrome/installer/util/browser_distribution.h"
-#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/shell_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -25,21 +24,14 @@
// The distribution strings should not be empty. The unit tests are not linking
// with the chrome resources so we cannot test official build.
TEST(BrowserDistributionTest, StringsTest) {
- struct browser_test_type {
- BrowserDistribution::Type type;
- bool has_com_dlls;
- } browser_tests[] = {
- { BrowserDistribution::CHROME_BROWSER, false },
- { BrowserDistribution::CHROME_FRAME, true },
+ BrowserDistribution::Type browser_tests[] = {
+ BrowserDistribution::CHROME_BROWSER,
+ BrowserDistribution::CHROME_FRAME,
};
- const installer::MasterPreferences& prefs =
- installer::MasterPreferences::ForCurrentProcess();
-
for (int i = 0; i < arraysize(browser_tests); ++i) {
BrowserDistribution* dist =
- BrowserDistribution::GetSpecificDistribution(browser_tests[i].type,
- prefs);
+ BrowserDistribution::GetSpecificDistribution(browser_tests[i]);
ASSERT_TRUE(dist != NULL);
std::wstring name = dist->GetApplicationName();
EXPECT_FALSE(name.empty());
@@ -47,12 +39,6 @@
EXPECT_FALSE(desc.empty());
std::wstring alt_name = dist->GetAlternateApplicationName();
EXPECT_FALSE(alt_name.empty());
- std::vector<FilePath> com_dlls(dist->GetComDllList());
- if (browser_tests[i].has_com_dlls) {
- EXPECT_FALSE(com_dlls.empty());
- } else {
- EXPECT_TRUE(com_dlls.empty());
- }
}
}
« no previous file with comments | « chrome/installer/util/browser_distribution.cc ('k') | chrome/installer/util/channel_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698