blob: 662f5f8112343e36d1c42cd331bc4deb01bb5115 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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 CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_WEB_APPS_REGISTRY_H_
#define CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_WEB_APPS_REGISTRY_H_
#include "chrome/browser/chromeos/drive/drive_file_system.h"
#include "chrome/browser/chromeos/drive/drive_webapps_registry.h"
#include "chrome/browser/google_apis/drive_api_parser.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace drive {
class MockDriveWebAppsRegistry : public DriveWebAppsRegistryInterface {
public:
MockDriveWebAppsRegistry();
virtual ~MockDriveWebAppsRegistry();
MOCK_METHOD3(GetWebAppsForFile, void(const FilePath& file,
const std::string& mime_type,
ScopedVector<DriveWebAppInfo>* apps));
MOCK_METHOD1(GetExtensionsForWebStoreApp,
std::set<std::string>(const std::string& web_store_id));
MOCK_METHOD1(UpdateFromFeed,
void(const google_apis::AccountMetadataFeed& metadata));
MOCK_METHOD1(UpdateFromApplicationList,
void(const google_apis::AppList& applist));
};
} // namespace drive
#endif // CHROME_BROWSER_CHROMEOS_DRIVE_MOCK_DRIVE_WEB_APPS_REGISTRY_H_
|