#include "chrome/browser/ui/download/download_bubble_row_list_view_info.h"
#include "base/functional/callback_forward.h"
#include "base/test/bind.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_ui_model.h"
#include "chrome/browser/download/offline_item_utils.h"
#include "chrome/test/base/testing_profile.h"
#include "components/download/public/common/mock_download_item.h"
#include "components/offline_items_collection/core/offline_item.h"
#include "content/public/browser/download_item_utils.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
ContentId;
NiceMock;
ReturnRefOfCopy;
int CountRowsWithId(const std::list<DownloadBubbleRowViewInfo>& rows,
const ContentId& id) { … }
class DownloadBubbleRowListViewInfoTest
: public testing::Test,
public DownloadBubbleRowListViewInfoObserver { … };
TEST_F(DownloadBubbleRowListViewInfoTest, AddRow) { … }
TEST_F(DownloadBubbleRowListViewInfoTest, AddRowsInOrder) { … }
TEST_F(DownloadBubbleRowListViewInfoTest, NotifyObserverAddRow) { … }
TEST_F(DownloadBubbleRowListViewInfoTest, NotifyObserverRowWillBeRemoved) { … }
TEST_F(DownloadBubbleRowListViewInfoTest, NotifyObserverAnyRowRemoved) { … }
}