C++程序  |  29行  |  884 B

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_TEST_MOCK_NOTIFICATION_OBSERVER_MOCK_H_
#define CONTENT_PUBLIC_TEST_MOCK_NOTIFICATION_OBSERVER_MOCK_H_

#include "content/public/browser/notification_observer.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace content {

class NotificationDetails;
class NotificationSource;

class MockNotificationObserver : public NotificationObserver {
 public:
  MockNotificationObserver();
  virtual ~MockNotificationObserver();

  MOCK_METHOD3(Observe, void(int type,
                             const NotificationSource& source,
                             const NotificationDetails& details));
};

}  // namespace content

#endif  // CONTENT_PUBLIC_TEST_MOCK_NOTIFICATION_OBSERVER_MOCK_H_