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

Unified Diff: bootloader_type_unittest.cc

Issue 3601014: cros_boot_mode: make cros_debug bootloader argument prempt others (Closed) Base URL: http://git.chromium.org/git/cros_boot_mode.git
Patch Set: Created 10 years, 2 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 | « bootloader_type.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bootloader_type_unittest.cc
diff --git a/bootloader_type_unittest.cc b/bootloader_type_unittest.cc
index 57ab2f582c67c056029a38ca200bce7771de4c77..39cfe2936773e8a1795fd52974df0b72db405e26 100644
--- a/bootloader_type_unittest.cc
+++ b/bootloader_type_unittest.cc
@@ -99,16 +99,17 @@ TEST_F(BootloaderTypeTest, NoTrailingBoundary) {
ExpectType(cros_boot_mode::BootloaderType::kUnsupported);
}
-TEST_F(BootloaderTypeTest, FirstMatchIsUsed) {
+TEST_F(BootloaderTypeTest, FirstMatchInEnumOrderIsUsed) {
std::string contents = StringPrintf(" %s %s ",
cros_boot_mode::BootloaderType::kSupportedBootloaders[
cros_boot_mode::BootloaderType::kChromeOS],
cros_boot_mode::BootloaderType::kSupportedBootloaders[
- cros_boot_mode::BootloaderType::kEFI]);
+ cros_boot_mode::BootloaderType::kDebug]);
EXPECT_EQ(file_util::WriteFile(FilePath(type_file_path_),
contents.c_str(), contents.length()),
contents.length());
type_.Initialize();
- ExpectType(cros_boot_mode::BootloaderType::kChromeOS);
+ ExpectType(cros_boot_mode::BootloaderType::kDebug);
}
+
« no previous file with comments | « bootloader_type.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698