1 // Copyright 2013 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.
4 
5 #include "base/callback.h"
6 #include "components/nacl/browser/test_nacl_browser_delegate.h"
7 
TestNaClBrowserDelegate()8 TestNaClBrowserDelegate::TestNaClBrowserDelegate() {}
9 
~TestNaClBrowserDelegate()10 TestNaClBrowserDelegate::~TestNaClBrowserDelegate() {}
11 
ShowMissingArchInfobar(int render_process_id,int render_view_id)12 void TestNaClBrowserDelegate::ShowMissingArchInfobar(int render_process_id,
13                                                      int render_view_id) {}
14 
DialogsAreSuppressed()15 bool TestNaClBrowserDelegate::DialogsAreSuppressed() {
16   return false;
17 }
18 
GetCacheDirectory(base::FilePath * cache_dir)19 bool TestNaClBrowserDelegate::GetCacheDirectory(base::FilePath* cache_dir) {
20   return false;
21 }
22 
GetPluginDirectory(base::FilePath * plugin_dir)23 bool TestNaClBrowserDelegate::GetPluginDirectory(base::FilePath* plugin_dir) {
24   return false;
25 }
26 
GetPnaclDirectory(base::FilePath * pnacl_dir)27 bool TestNaClBrowserDelegate::GetPnaclDirectory(base::FilePath* pnacl_dir) {
28   return false;
29 }
30 
GetUserDirectory(base::FilePath * user_dir)31 bool TestNaClBrowserDelegate::GetUserDirectory(base::FilePath* user_dir) {
32   return false;
33 }
34 
GetVersionString() const35 std::string TestNaClBrowserDelegate::GetVersionString() const {
36   return std::string();
37 }
38 
CreatePpapiHostFactory(content::BrowserPpapiHost * ppapi_host)39 ppapi::host::HostFactory* TestNaClBrowserDelegate::CreatePpapiHostFactory(
40     content::BrowserPpapiHost* ppapi_host) {
41   return NULL;
42 }
43 
44 NaClBrowserDelegate::MapUrlToLocalFilePathCallback
GetMapUrlToLocalFilePathCallback(const base::FilePath & profile_directory)45 TestNaClBrowserDelegate::GetMapUrlToLocalFilePathCallback(
46     const base::FilePath& profile_directory) {
47   return base::BindRepeating([](const GURL& url, bool use_blocking_api,
48                                 base::FilePath* file_path) { return false; });
49 }
50 
SetDebugPatterns(const std::string & debug_patterns)51 void TestNaClBrowserDelegate::SetDebugPatterns(
52     const std::string& debug_patterns) {}
53 
URLMatchesDebugPatterns(const GURL & manifest_url)54 bool TestNaClBrowserDelegate::URLMatchesDebugPatterns(
55     const GURL& manifest_url) {
56   return false;
57 }
58 
IsNonSfiModeAllowed(const base::FilePath & profile_directory,const GURL & manifest_url)59 bool TestNaClBrowserDelegate::IsNonSfiModeAllowed(
60     const base::FilePath& profile_directory,
61     const GURL& manifest_url) {
62   return false;
63 }
64