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

Side by Side Diff: rlz/lib/machine_id_unittest.cc

Issue 10642009: Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync and Merge. Created 8 years, 6 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 unified diff | Download patch
« no previous file with comments | « rlz/lib/machine_id.cc ('k') | rlz/lib/rlz_enums.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "rlz/lib/machine_id.h"
6
7 #include "base/string16.h"
8 #include "base/utf_string_conversions.h"
9 #include "rlz/test/rlz_test_helpers.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11
12 // This test will fail if the behavior of GetMachineId changes.
13 TEST(MachineDealCodeTestMachineId, MachineId) {
14 string16 computer_sid(UTF8ToUTF16(
15 "S-1-5-21-2345599882-2448789067-1921365677"));
16 std::string id;
17 rlz_lib::testing::GetMachineIdImpl(computer_sid, 2651229008, &id);
18 EXPECT_STREQ("A341BA986A7E86840688977FCF20C86E253F00919E068B50F8",
19 id.c_str());
20 }
OLDNEW
« no previous file with comments | « rlz/lib/machine_id.cc ('k') | rlz/lib/rlz_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698