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

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: 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..3747e26e9f5d71471fa36bf13ab943c0a95157fd 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 img_src =
xiyuan 2011/01/25 17:10:28 nit: img_src -> kImgSrc?
achuithb 2011/01/25 22:25:32 Done.
+ "/home/chronos/user/Downloads/chromeos_image/chromeos_image.bin.zip";
+
+ // First 3 should fail because the target is on the root partition.
+ AddTest(img_src, "/usr/local/chromeos_image.bin.zip");
+ AddTest(img_src, "/dev/sda");
+ AddTest(img_src, "/dev/sda1");
+ AddTest(img_src, "/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