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

Unified Diff: image_burner_tester.cc

Issue 6357012: Use chromeos::IsBootDevicePath. (Closed) Base URL: http://git.chromium.org/git/image-burner.git@master
Patch Set: lint 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 | « image_burn_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_burner_tester.cc
diff --git a/image_burner_tester.cc b/image_burner_tester.cc
index d2096473213597e2c89ffc036ffde388c1294681..6d2b68039d0bd18fbe9c84e6ee94197e00ffd4c3 100644
--- a/image_burner_tester.cc
+++ b/image_burner_tester.cc
@@ -80,21 +80,14 @@ class TestClient {
void StartTests() {
tests_.resize(0);
- AddTest(
- "/home/chronos/user/Downloads/chromeos_image/chroemos_image.bin.gz",
- "/usr/local/chroemos_image.bin.gz");
-
- AddTest(
- "/home/chronos/user/Downloads/chromeos_image/chroemos_image.bin.gz",
- "/dev/sda");
-
- AddTest(
- "/home/chronos/user/Downloads/chromeos_image/chroemos_image.bin.gz",
- "/dev/sda1");
-
- AddTest(
- "/home/chronos/user/Downloads/chromeos_image/chroemos_image.bin.gz",
- "/dev/sdb");
+ const char* const kImgSrc =
+ "/home/chronos/user/Downloads/chromeos_image/chromeos_image.bin.zip";
+
+ // First 3 should fail because the target is on the root partition.
+ AddTest(kImgSrc, "/usr/local/chromeos_image.bin.zip");
+ AddTest(kImgSrc, "/dev/sda");
+ AddTest(kImgSrc, "/dev/sda1");
+ AddTest(kImgSrc, "/dev/sdb");
tests_it_ = tests_.begin();
RunNext();
« no previous file with comments | « image_burn_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698