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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_provider_test.h

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_ 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_ 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "chrome/renderer/spellchecker/spellcheck_provider.h" 12 #include "chrome/renderer/spellchecker/spellcheck_provider.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/public/platform/WebVector.h" 14 #include "third_party/WebKit/public/platform/WebVector.h"
15 #include "third_party/WebKit/public/web/WebTextCheckingCompletion.h" 15 #include "third_party/WebKit/public/web/WebTextCheckingCompletion.h"
16 #include "third_party/WebKit/public/web/WebTextCheckingResult.h" 16 #include "third_party/WebKit/public/web/WebTextCheckingResult.h"
17 17
18 namespace IPC { 18 namespace IPC {
19 class Message; 19 class Message;
20 } 20 }
21 21
22 // A fake completion object for verification. 22 // A fake completion object for verification.
23 class FakeTextCheckingCompletion : public blink::WebTextCheckingCompletion { 23 class FakeTextCheckingCompletion : public blink::WebTextCheckingCompletion {
24 public: 24 public:
25 FakeTextCheckingCompletion(); 25 FakeTextCheckingCompletion();
26 ~FakeTextCheckingCompletion(); 26 ~FakeTextCheckingCompletion();
27 27
28 virtual void didFinishCheckingText( 28 void didFinishCheckingText(
29 const blink::WebVector<blink::WebTextCheckingResult>& results) override; 29 const blink::WebVector<blink::WebTextCheckingResult>& results) override;
30 virtual void didCancelCheckingText() override; 30 void didCancelCheckingText() override;
31
32 31
33 size_t completion_count_; 32 size_t completion_count_;
34 size_t cancellation_count_; 33 size_t cancellation_count_;
35 }; 34 };
36 35
37 // Faked test target, which stores sent message for verification. 36 // Faked test target, which stores sent message for verification.
38 class TestingSpellCheckProvider : public SpellCheckProvider { 37 class TestingSpellCheckProvider : public SpellCheckProvider {
39 public: 38 public:
40 TestingSpellCheckProvider(); 39 TestingSpellCheckProvider();
41 40
(...skipping 14 matching lines...) Expand all
56 class SpellCheckProviderTest : public testing::Test { 55 class SpellCheckProviderTest : public testing::Test {
57 public: 56 public:
58 SpellCheckProviderTest(); 57 SpellCheckProviderTest();
59 ~SpellCheckProviderTest() override; 58 ~SpellCheckProviderTest() override;
60 59
61 protected: 60 protected:
62 TestingSpellCheckProvider provider_; 61 TestingSpellCheckProvider provider_;
63 }; 62 };
64 63
65 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_ 64 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.h ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698