Revert "Revert "add newlines to base64 content" because it broke amd64-generic incremental build."
This reverts commit ed847e083252f93f81ab31c94f709103eb6f338c.
This didn't break the build -- it actually fixes the unittests.
Change-Id: I420ab04063f813d470f4cd9acf695a9769171426
Reviewed-on: https://chromium-review.googlesource.com/202703
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/homedirs_unittest.cc b/homedirs_unittest.cc
index 7f5dff1..a4403ce 100644
--- a/homedirs_unittest.cc
+++ b/homedirs_unittest.cc
@@ -1055,11 +1055,12 @@
// The salted password passed in from Chrome.
const char kPassword[] = "OSL3HZZSfK+mDQTYUh3lXhgAzJNWhYz52ax0Bleny7Q=";
// A no-op encryption key.
- const char kB64CipherKey[] = "QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=";
+ const char kB64CipherKey[] = "QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUE=\n";
// The signing key pre-installed.
- const char kB64SigningKey[] = "p5TR/34XX0R7IMuffH14BiL1vcdSD8EajPzdIg09z9M=";
+ const char kB64SigningKey[] =
+ "p5TR/34XX0R7IMuffH14BiL1vcdSD8EajPzdIg09z9M=\n";
// The HMAC-256 signature over kPassword using kSigningKey.
- const char kB64Signature[] = "KOPQmmJcMr9iMkr36N1cX+G9gDdBBu7zutAxNayPMN4=";
+ const char kB64Signature[] = "KOPQmmJcMr9iMkr36N1cX+G9gDdBBu7zutAxNayPMN4=\n";
// No need to do PasswordToPasskey as that is the
// external callers job.