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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc

Issue 687903003: Cleanup: Remove unneeded ui_test_utils.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros Created 6 years, 1 month 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_vector.h" 6 #include "base/memory/scoped_vector.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" 10 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
11 #include "chrome/common/spellcheck_messages.h" 11 #include "chrome/common/spellcheck_messages.h"
12 #include "chrome/common/spellcheck_result.h" 12 #include "chrome/common/spellcheck_result.h"
13 #include "chrome/test/base/in_process_browser_test.h" 13 #include "chrome/test/base/in_process_browser_test.h"
14 #include "chrome/test/base/ui_test_utils.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 15
17 // Fake filter for testing, which stores sent messages and 16 // Fake filter for testing, which stores sent messages and
18 // allows verification by the test case. 17 // allows verification by the test case.
19 class TestingSpellCheckMessageFilter : public SpellCheckMessageFilterMac { 18 class TestingSpellCheckMessageFilter : public SpellCheckMessageFilterMac {
20 public: 19 public:
21 explicit TestingSpellCheckMessageFilter(base::MessageLoopForUI* loop) 20 explicit TestingSpellCheckMessageFilter(base::MessageLoopForUI* loop)
22 : SpellCheckMessageFilterMac(0), 21 : SpellCheckMessageFilterMac(0),
23 loop_(loop) { } 22 loop_(loop) { }
24 23
(...skipping 30 matching lines...) Expand all
55 target->sent_messages_[0], &params); 54 target->sent_messages_[0], &params);
56 std::vector<SpellCheckResult> sent_results = params.b; 55 std::vector<SpellCheckResult> sent_results = params.b;
57 56
58 EXPECT_TRUE(ok); 57 EXPECT_TRUE(ok);
59 EXPECT_EQ(1U, sent_results.size()); 58 EXPECT_EQ(1U, sent_results.size());
60 EXPECT_EQ(sent_results[0].location, 0); 59 EXPECT_EQ(sent_results[0].location, 0);
61 EXPECT_EQ(sent_results[0].length, 2); 60 EXPECT_EQ(sent_results[0].length, 2);
62 EXPECT_EQ(sent_results[0].decoration, 61 EXPECT_EQ(sent_results[0].decoration,
63 SpellCheckResult::SPELLING); 62 SpellCheckResult::SPELLING);
64 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698