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

Issue 2645008: Update on feedback, update dbus API, add unit tests. TEST=manual,unit,BVT BUG=3628 323 (Closed)

Created:
10 years, 6 months ago by fes
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/cryptohome.git
Visibility:
Public.

Description

Update on feedback, update dbus API, add unit tests. TEST=manual,unit,BVT BUG=3628 323 This CL includes changes based on code review feedback, an updated dbus API which adds MountGuest, and refactors code to allow for unit testing. Functionally, it is compatible with prior versions of cryptohome.

Patch Set 1 #

Total comments: 52

Patch Set 2 : Address code review feedback. #

Patch Set 3 : Style: Fix indenting. #

Total comments: 14

Patch Set 4 : Address second round of feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1968 lines, -1599 lines) Patch
M SConstruct View 2 chunks +18 lines, -15 lines 0 comments Download
M credentials.h View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
A crypto.h View 1 2 3 1 chunk +143 lines, -0 lines 0 comments Download
A crypto.cc View 1 2 3 1 chunk +346 lines, -0 lines 0 comments Download
A crypto_unittest.cc View 1 2 3 1 chunk +170 lines, -0 lines 0 comments Download
M cryptohome.cc View 1 2 3 7 chunks +78 lines, -98 lines 0 comments Download
M cryptohome.xml View 1 chunk +5 lines, -0 lines 0 comments Download
M cryptohome_common.h View 1 2 chunks +9 lines, -15 lines 0 comments Download
M cryptohomed.cc View 1 chunk +1 line, -1 line 0 comments Download
M etc/Cryptohome.conf View 1 chunk +3 lines, -0 lines 0 comments Download
M init_cryptohome_data.sh View 2 chunks +16 lines, -25 lines 0 comments Download
M interface.h View 1 2 3 2 chunks +10 lines, -4 lines 0 comments Download
M interface.cc View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M make_tests.sh View 1 3 chunks +27 lines, -25 lines 0 comments Download
M mock_mount.h View 1 chunk +1 line, -1 line 0 comments Download
M mount.h View 1 2 3 7 chunks +72 lines, -128 lines 0 comments Download
M mount.cc View 1 2 3 16 chunks +148 lines, -610 lines 0 comments Download
M mount_unittest.cc View 1 2 3 9 chunks +69 lines, -71 lines 0 comments Download
A platform.h View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
A platform.cc View 1 2 3 1 chunk +282 lines, -0 lines 0 comments Download
M secure_blob.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M secure_blob.cc View 1 2 3 2 chunks +23 lines, -5 lines 0 comments Download
A secure_blob_unittest.cc View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
M service.h View 1 2 3 3 chunks +12 lines, -5 lines 0 comments Download
M service.cc View 1 2 3 6 chunks +46 lines, -38 lines 0 comments Download
M service_unittest.cc View 2 3 1 chunk +5 lines, -6 lines 0 comments Download
D test.sh View 1 chunk +0 lines, -9 lines 0 comments Download
D tests/mocks View 1 chunk +0 lines, -181 lines 0 comments Download
D tests/mount View 1 chunk +0 lines, -183 lines 0 comments Download
M username_passkey.h View 1 2 3 1 chunk +9 lines, -28 lines 0 comments Download
M username_passkey.cc View 1 2 3 2 chunks +10 lines, -85 lines 0 comments Download
M username_passkey_unittest.cc View 1 2 3 3 chunks +20 lines, -17 lines 0 comments Download
M vault_keyset.h View 1 2 3 4 chunks +7 lines, -5 lines 0 comments Download
M vault_keyset.cc View 1 2 3 4 chunks +41 lines, -36 lines 0 comments Download
A vault_keyset_unittest.cc View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fes
10 years, 6 months ago (2010-06-07 21:27:32 UTC) #1
Will Drewry
Looks good but there are still some style nits hanging around :/ After realizing I ...
10 years, 6 months ago (2010-06-09 19:08:12 UTC) #2
fes
Great feedback--sorry for all of the style violations. These should be fixed in the latest ...
10 years, 6 months ago (2010-06-09 21:24:59 UTC) #3
fes
http://codereview.chromium.org/2645008/diff/1/4 File crypto.cc (right): http://codereview.chromium.org/2645008/diff/1/4#newcode5 crypto.cc:5: // Contains the implementation of class Mount On 2010/06/09 ...
10 years, 6 months ago (2010-06-09 21:25:25 UTC) #4
Will Drewry
LGTM with a few style and typo nits http://codereview.chromium.org/2645008/diff/19001/20003 File crypto.cc (right): http://codereview.chromium.org/2645008/diff/19001/20003#newcode16 crypto.cc:16: #include ...
10 years, 6 months ago (2010-06-11 06:40:04 UTC) #5
fes
10 years, 6 months ago (2010-06-11 16:31:59 UTC) #6
Updated, with modifications to other files to reflect the new proposed include
conventions.  I also updated the include ordering to reflect the C first, C++
second convention in the style guide.

http://codereview.chromium.org/2645008/diff/19001/20003
File crypto.cc (right):

http://codereview.chromium.org/2645008/diff/19001/20003#newcode16
crypto.cc:16: #include "chromeos/utility.h"
On 2010/06/11 06:40:04, Will Drewry wrote:
> fwiw, ditto with <chromeos/utility.h> when we get around to it.

Done.

http://codereview.chromium.org/2645008/diff/19001/20004
File crypto.h (right):

http://codereview.chromium.org/2645008/diff/19001/20004#newcode13
crypto.h:13: #include "base/basictypes.h"
On 2010/06/11 06:40:04, Will Drewry wrote:
> Nothing to change now unless you want to, but msb@ raise the point that as we
> properly break up our tree, we should be able to start referencing external
> includes with <>.  E.g.,
> #include <base/basictypes.h> 
> 
> (Of course, we should also move that to chrome-base ;)

Done.

http://codereview.chromium.org/2645008/diff/19001/20004#newcode30
crypto.h:30: Crypto(const std::string& entropy_source);
On 2010/06/11 06:40:04, Will Drewry wrote:
> Any chance of using a setter and/or an Init() function?
> E.g.,
>   set_entropy_source(...)

Done.

http://codereview.chromium.org/2645008/diff/19001/20005
File crypto_unittest.cc (right):

http://codereview.chromium.org/2645008/diff/19001/20005#newcode20
crypto_unittest.cc:20: using namespace chromeos;
On 2010/06/11 06:40:04, Will Drewry wrote:
> full namespace inclusion here and below. but at least it's a unittest :)

Done.

http://codereview.chromium.org/2645008/diff/19001/20006
File cryptohome.cc (right):

http://codereview.chromium.org/2645008/diff/19001/20006#newcode19
cryptohome.cc:19: #include <chromeos/dbus/dbus.h>
On 2010/06/11 06:40:04, Will Drewry wrote:
> here <> is used a little more properly and how we want to use it long term.

Done.

http://codereview.chromium.org/2645008/diff/19001/20014
File mount.cc (right):

http://codereview.chromium.org/2645008/diff/19001/20014#newcode30
mount.cc:30: const std::string kIncognitoUser = "incognito";
On 2010/06/11 06:40:04, Will Drewry wrote:
> is this approach still in use in any other code?  Maybe a todo to kill the
> incognito-user path would be good.

Done.

http://codereview.chromium.org/2645008/diff/19001/20033
File vault_keyset_unittest.cc (right):

http://codereview.chromium.org/2645008/diff/19001/20033#newcode78
vault_keyset_unittest.cc:78: TEST_F(VaultKeysetTest, DeerializeTest) {
On 2010/06/11 06:40:04, Will Drewry wrote:
> Deer!

Done.

Powered by Google App Engine
This is Rietveld 408576698