OLD | NEW |
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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/common/spellcheck_marker.h" | 8 #include "chrome/common/spellcheck_marker.h" |
9 #include "chrome/common/spellcheck_messages.h" | 9 #include "chrome/common/spellcheck_messages.h" |
10 #include "chrome/common/spellcheck_result.h" | 10 #include "chrome/common/spellcheck_result.h" |
11 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h" | 11 #include "chrome/renderer/spellchecker/spellcheck_provider_test.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class SpellCheckProviderMacTest : public SpellCheckProviderTest {}; | 17 class SpellCheckProviderMacTest : public SpellCheckProviderTest {}; |
18 | 18 |
19 struct MessageParameters { | 19 struct MessageParameters { |
20 MessageParameters() | 20 MessageParameters() |
21 : router_id(0), | 21 : router_id(0), |
22 request_id(0) {} | 22 request_id(0) {} |
23 | 23 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 EXPECT_EQ(completion2.completion_count_, 0U); | 95 EXPECT_EQ(completion2.completion_count_, 0U); |
96 EXPECT_EQ(provider_.pending_text_request_size(), 1U); | 96 EXPECT_EQ(provider_.pending_text_request_size(), 1U); |
97 | 97 |
98 FakeMessageArrival(&provider_, read_parameters2); | 98 FakeMessageArrival(&provider_, read_parameters2); |
99 EXPECT_EQ(completion1.completion_count_, 1U); | 99 EXPECT_EQ(completion1.completion_count_, 1U); |
100 EXPECT_EQ(completion2.completion_count_, 1U); | 100 EXPECT_EQ(completion2.completion_count_, 1U); |
101 EXPECT_EQ(provider_.pending_text_request_size(), 0U); | 101 EXPECT_EQ(provider_.pending_text_request_size(), 0U); |
102 } | 102 } |
103 | 103 |
104 } // namespace | 104 } // namespace |
OLD | NEW |