chromium/chrome/browser/ui/global_error/global_error_service_unittest.cc

// Copyright 2012 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/ui/global_error/global_error_service.h"

#include <memory>

#include "base/memory/ptr_util.h"
#include "chrome/browser/ui/global_error/global_error.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

// Error base class that keeps track of the number of errors that exist.
class BaseError : public GlobalError {};

int BaseError::count_ =;

// A simple error that only has a menu item.
class MenuError : public BaseError {};

} // namespace

// Test adding errors to the global error service.
TEST(GlobalErrorServiceTest, AddError) {}

// Test removing errors from the global error service.
TEST(GlobalErrorServiceTest, RemoveError) {}

// Test finding errors by their menu item command ID.
TEST(GlobalErrorServiceTest, GetMenuItem) {}

// Test getting the error with the highest severity.
TEST(GlobalErrorServiceTest, HighestSeverity) {}