#include "ui/color/color_provider_source.h"
#include <memory>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color/color_provider_manager.h"
#include "ui/color/color_provider_source_observer.h"
namespace ui {
namespace {
class MockColorProviderSource : public ColorProviderSource { … };
class MockColorProviderSourceObserver : public ColorProviderSourceObserver { … };
}
ColorProviderSourceObserverTest;
TEST_F(ColorProviderSourceObserverTest, DestroyingSourceClearsItFromObservers) { … }
TEST_F(ColorProviderSourceObserverTest, DestroyingObserverClearsItFromSource) { … }
TEST_F(ColorProviderSourceObserverTest,
ObserverCorrectlySetsObservationOfSource) { … }
}