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

Side by Side Diff: components/test_runner/spell_check_client.h

Issue 1839853002: Moving remaining mocks from WebTestProxyBase into TestRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splitting-web-view-test-client
Patch Set: Rebasing... Created 4 years, 8 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
« no previous file with comments | « no previous file | components/test_runner/spell_check_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/test_runner/mock_spell_check.h" 11 #include "components/test_runner/mock_spell_check.h"
12 #include "components/test_runner/web_task.h" 12 #include "components/test_runner/web_task.h"
13 #include "third_party/WebKit/public/platform/WebString.h"
14 #include "third_party/WebKit/public/platform/WebVector.h"
13 #include "third_party/WebKit/public/web/WebSpellCheckClient.h" 15 #include "third_party/WebKit/public/web/WebSpellCheckClient.h"
14 16
17 namespace blink {
18 class WebTextCheckingCompletion;
19 struct WebTextCheckingResult;
20 } // namespace blink
21
15 namespace test_runner { 22 namespace test_runner {
16 23
24 class TestRunner;
17 class WebTestDelegate; 25 class WebTestDelegate;
18 class WebTestProxyBase;
19 26
20 class SpellCheckClient : public blink::WebSpellCheckClient { 27 class SpellCheckClient : public blink::WebSpellCheckClient {
21 public: 28 public:
22 explicit SpellCheckClient(WebTestProxyBase* web_test_proxy); 29 explicit SpellCheckClient(TestRunner* test_runner);
23 virtual ~SpellCheckClient(); 30 virtual ~SpellCheckClient();
24 31
25 void SetDelegate(WebTestDelegate* delegate); 32 void SetDelegate(WebTestDelegate* delegate);
26 33
27 WebTaskList* mutable_task_list() { return &task_list_; } 34 WebTaskList* mutable_task_list() { return &task_list_; }
28 MockSpellCheck* MockSpellCheckWord() { return &spell_check_; } 35 MockSpellCheck* MockSpellCheckWord() { return &spell_check_; }
29 36
30 // blink::WebSpellCheckClient implementation. 37 // blink::WebSpellCheckClient implementation.
31 void spellCheck( 38 void spellCheck(
32 const blink::WebString& text, 39 const blink::WebString& text,
(...skipping 14 matching lines...) Expand all
47 void FinishLastTextCheck(); 54 void FinishLastTextCheck();
48 55
49 // The mock spellchecker used in spellCheck(). 56 // The mock spellchecker used in spellCheck().
50 MockSpellCheck spell_check_; 57 MockSpellCheck spell_check_;
51 58
52 blink::WebString last_requested_text_check_string_; 59 blink::WebString last_requested_text_check_string_;
53 blink::WebTextCheckingCompletion* last_requested_text_checking_completion_; 60 blink::WebTextCheckingCompletion* last_requested_text_checking_completion_;
54 61
55 WebTaskList task_list_; 62 WebTaskList task_list_;
56 63
64 TestRunner* test_runner_;
57 WebTestDelegate* delegate_; 65 WebTestDelegate* delegate_;
58 66
59 WebTestProxyBase* web_test_proxy_;
60
61 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient); 67 DISALLOW_COPY_AND_ASSIGN(SpellCheckClient);
62 }; 68 };
63 69
64 } // namespace test_runner 70 } // namespace test_runner
65 71
66 #endif // COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_ 72 #endif // COMPONENTS_TEST_RUNNER_SPELL_CHECK_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/spell_check_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698