blob: 6046085cfc53e564b2071b6bcea4de8a58632787 [file] [log] [blame]
// Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mock_install_attributes_reader.h"
const cryptohome::SerializedInstallAttributes& install_attributes) {
for (int i = 0; i < install_attributes.attributes_size(); ++i) {
const cryptohome::SerializedInstallAttributes_Attribute& attribute =
// Cast value to C string and back to remove trailing zero.
attributes_[] = std::string(attribute.value().c_str());
initialized_ = true;