blob: be24451e8042be796b53198b8d7e4368a191f80f [file] [log] [blame]
// Copyright 2012 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include "debugd/src/process_with_id.h"
TEST(ProcessWithId, GeneratedId) {
debugd::ProcessWithId p0;
debugd::ProcessWithId p1;
EXPECT_EQ(p0.Init(), true);
EXPECT_EQ(p1.Init(), true);
EXPECT_NE(p0.id(), p1.id());
EXPECT_GT(p0.id().length(), 0);
EXPECT_GT(p1.id().length(), 0);
}