Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 15010: Implement extension:// protocol. (Closed)
Patch Set: add missing unit test Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/tools/test_shell/test_shell.h" 5 #include "webkit/tools/test_shell/test_shell.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug_on_start.h" 8 #include "base/debug_on_start.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 public: 90 public:
91 virtual ~URLRequestTestShellFileJob() { } 91 virtual ~URLRequestTestShellFileJob() { }
92 92
93 static URLRequestJob* InspectorFactory(URLRequest* request, 93 static URLRequestJob* InspectorFactory(URLRequest* request,
94 const std::string& scheme) { 94 const std::string& scheme) {
95 std::wstring path; 95 std::wstring path;
96 PathService::Get(base::DIR_EXE, &path); 96 PathService::Get(base::DIR_EXE, &path);
97 file_util::AppendToPath(&path, L"Resources"); 97 file_util::AppendToPath(&path, L"Resources");
98 file_util::AppendToPath(&path, L"Inspector"); 98 file_util::AppendToPath(&path, L"Inspector");
99 file_util::AppendToPath(&path, UTF8ToWide(request->url().path())); 99 file_util::AppendToPath(&path, UTF8ToWide(request->url().path()));
100 return new URLRequestTestShellFileJob(request, path); 100 return new URLRequestTestShellFileJob(request,
101 FilePath::FromWStringHack(path));
101 } 102 }
102 103
103 private: 104 private:
104 URLRequestTestShellFileJob(URLRequest* request, const std::wstring& path) 105 URLRequestTestShellFileJob(URLRequest* request, const FilePath& path)
105 : URLRequestFileJob(request) { 106 : URLRequestFileJob(request, path) {
106 this->file_path_ = FilePath::FromWStringHack(path);
107 } 107 }
108 108
109 DISALLOW_COPY_AND_ASSIGN(URLRequestTestShellFileJob); 109 DISALLOW_COPY_AND_ASSIGN(URLRequestTestShellFileJob);
110 }; 110 };
111 111
112 } // namespace 112 } // namespace
113 113
114 // Initialize static member variable 114 // Initialize static member variable
115 WindowList* TestShell::window_list_; 115 WindowList* TestShell::window_list_;
116 WebPreferences* TestShell::web_prefs_ = NULL; 116 WebPreferences* TestShell::web_prefs_ = NULL;
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 uint64 VisitedLinkHash(const char* canonical_url, size_t length) { 595 uint64 VisitedLinkHash(const char* canonical_url, size_t length) {
596 return 0; 596 return 0;
597 } 597 }
598 598
599 bool IsLinkVisited(uint64 link_hash) { 599 bool IsLinkVisited(uint64 link_hash) {
600 return false; 600 return false;
601 } 601 }
602 602
603 } // namespace webkit_glue 603 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698