blob: ff59db28ab21e4eda205d6fc9a8f8ee0b584b171 [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/remote_apps/id_generator.h"
#include "base/guid.h"
namespace ash {
std::string GuidIdGenerator::GenerateId() {
return base::GenerateGUID();
}
FakeIdGenerator::FakeIdGenerator(const std::vector<std::string>& ids)
: ids_(ids) {}
FakeIdGenerator::~FakeIdGenerator() = default;
std::string FakeIdGenerator::GenerateId() {
std::string id = ids_[index_];
++index_;
return id;
}
} // namespace ash