Removing uses of X11 native key events.
[chromium-blink-merge.git] / content / public / test / mock_download_item.cc
blob562972a2658e7f1d73d4d496f9e13d5cf4cd28bb
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/test/mock_download_item.h"
7 namespace content {
9 MockDownloadItem::MockDownloadItem() {}
11 MockDownloadItem::~MockDownloadItem() {
12 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadDestroyed(this));
15 void MockDownloadItem::AddObserver(Observer* observer) {
16 observers_.AddObserver(observer);
19 void MockDownloadItem::RemoveObserver(Observer* observer) {
20 observers_.RemoveObserver(observer);
23 void MockDownloadItem::NotifyObserversDownloadOpened() {
24 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadOpened(this));
27 void MockDownloadItem::NotifyObserversDownloadRemoved() {
28 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadRemoved(this));
31 void MockDownloadItem::NotifyObserversDownloadUpdated() {
32 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadUpdated(this));