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

Side by Side Diff: shell/shell_test_helper.h

Issue 868283006: Rename MojoURLResolver to URLResolver (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Garbage char Created 5 years, 10 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef SHELL_SHELL_TEST_HELPER_H_ 5 #ifndef SHELL_SHELL_TEST_HELPER_H_
6 #define SHELL_SHELL_TEST_HELPER_H_ 6 #define SHELL_SHELL_TEST_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 18 matching lines...) Expand all
29 29
30 ApplicationManager* application_manager() { 30 ApplicationManager* application_manager() {
31 return context_.application_manager(); 31 return context_.application_manager();
32 } 32 }
33 33
34 // Sets a ApplicationLoader for the specified URL. |loader| is ultimately used 34 // Sets a ApplicationLoader for the specified URL. |loader| is ultimately used
35 // on 35 // on
36 // the thread this class spawns. 36 // the thread this class spawns.
37 void SetLoaderForURL(scoped_ptr<ApplicationLoader> loader, const GURL& url); 37 void SetLoaderForURL(scoped_ptr<ApplicationLoader> loader, const GURL& url);
38 38
39 // Adds a mapping that is used when resolving mojo urls. See MojoURLResolver 39 // Adds a mapping that is used when resolving mojo urls. See URLResolver
40 // for details. 40 // for details.
41 void AddCustomMapping(const GURL& mojo_url, const GURL& resolved_url); 41 void AddURLMapping(const GURL& url, const GURL& resolved_url);
42 42
43 private: 43 private:
44 Context context_; 44 Context context_;
45 base::MessageLoop shell_loop_; 45 base::MessageLoop shell_loop_;
46 scoped_ptr<ApplicationManager::TestAPI> test_api_; 46 scoped_ptr<ApplicationManager::TestAPI> test_api_;
47 DISALLOW_COPY_AND_ASSIGN(ShellTestHelper); 47 DISALLOW_COPY_AND_ASSIGN(ShellTestHelper);
48 }; 48 };
49 49
50 } // namespace shell 50 } // namespace shell
51 } // namespace mojo 51 } // namespace mojo
52 52
53 #endif // SHELL_SHELL_TEST_HELPER_H_ 53 #endif // SHELL_SHELL_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698