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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 297273003: test_runner: Migrate WebTestRunner to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/shell/renderer/test_runner/WebTask.h" 14 #include "content/shell/renderer/test_runner/WebTask.h"
15 #include "content/shell/renderer/test_runner/WebTestRunner.h" 15 #include "content/shell/renderer/test_runner/web_test_runner.h"
16 #include "v8/include/v8.h" 16 #include "v8/include/v8.h"
17 17
18 namespace blink { 18 namespace blink {
19 class WebFrame; 19 class WebFrame;
20 class WebNotificationPresenter; 20 class WebNotificationPresenter;
21 class WebPermissionClient; 21 class WebPermissionClient;
22 class WebString; 22 class WebString;
23 class WebView; 23 class WebView;
24 } 24 }
25 25
(...skipping 28 matching lines...) Expand all
54 WebTaskList* mutable_task_list() { return &task_list_; } 54 WebTaskList* mutable_task_list() { return &task_list_; }
55 55
56 void SetTestIsRunning(bool); 56 void SetTestIsRunning(bool);
57 bool TestIsRunning() const { return test_is_running_; } 57 bool TestIsRunning() const { return test_is_running_; }
58 58
59 bool UseMockTheme() const { return use_mock_theme_; } 59 bool UseMockTheme() const { return use_mock_theme_; }
60 60
61 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback); 61 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback);
62 62
63 // WebTestRunner implementation. 63 // WebTestRunner implementation.
64 virtual bool shouldGeneratePixelResults() OVERRIDE; 64 virtual bool ShouldGeneratePixelResults() OVERRIDE;
65 virtual bool shouldDumpAsAudio() const OVERRIDE; 65 virtual bool ShouldDumpAsAudio() const OVERRIDE;
66 virtual void getAudioData(std::vector<unsigned char>* bufferView) const 66 virtual void GetAudioData(
67 OVERRIDE; 67 std::vector<unsigned char>* buffer_view) const OVERRIDE;
68 virtual bool shouldDumpBackForwardList() const OVERRIDE; 68 virtual bool ShouldDumpBackForwardList() const OVERRIDE;
69 virtual blink::WebPermissionClient* webPermissions() const OVERRIDE; 69 virtual blink::WebPermissionClient* GetWebPermissions() const OVERRIDE;
70 70
71 // Methods used by WebTestProxyBase. 71 // Methods used by WebTestProxyBase.
72 bool shouldDumpSelectionRect() const; 72 bool shouldDumpSelectionRect() const;
73 bool isPrinting() const; 73 bool isPrinting() const;
74 bool shouldDumpAsText(); 74 bool shouldDumpAsText();
75 bool shouldDumpAsTextWithPixelResults(); 75 bool shouldDumpAsTextWithPixelResults();
76 bool shouldDumpAsCustomText() const; 76 bool shouldDumpAsCustomText() const;
77 std:: string customDumpText() const; 77 std:: string customDumpText() const;
78 bool shouldDumpAsMarkup(); 78 bool shouldDumpAsMarkup();
79 bool shouldDumpChildFrameScrollPositions() const; 79 bool shouldDumpChildFrameScrollPositions() const;
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 bool use_mock_theme_; 709 bool use_mock_theme_;
710 710
711 base::WeakPtrFactory<TestRunner> weak_factory_; 711 base::WeakPtrFactory<TestRunner> weak_factory_;
712 712
713 DISALLOW_COPY_AND_ASSIGN(TestRunner); 713 DISALLOW_COPY_AND_ASSIGN(TestRunner);
714 }; 714 };
715 715
716 } // namespace content 716 } // namespace content
717 717
718 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 718 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestRunner.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698