OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/spellchecker/feedback_sender.h" | 14 #include "chrome/browser/spellchecker/feedback_sender.h" |
15 #include "chrome/common/spellcheck_common.h" | 15 #include "chrome/common/spellcheck_common.h" |
16 #include "chrome/common/spellcheck_marker.h" | 16 #include "chrome/common/spellcheck_marker.h" |
17 #include "chrome/common/spellcheck_result.h" | 17 #include "chrome/common/spellcheck_result.h" |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "net/url_request/test_url_fetcher_factory.h" | 20 #include "net/url_request/test_url_fetcher_factory.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 feedback_.OnReceiveDocumentMarkers(kRendererProcessId, | 519 feedback_.OnReceiveDocumentMarkers(kRendererProcessId, |
520 std::vector<uint32>()); | 520 std::vector<uint32>()); |
521 net::TestURLFetcher* fetcher = GetFetcher(); | 521 net::TestURLFetcher* fetcher = GetFetcher(); |
522 EXPECT_EQ(1, CountOccurences(fetcher->upload_data(), "SELECT")) | 522 EXPECT_EQ(1, CountOccurences(fetcher->upload_data(), "SELECT")) |
523 << fetcher->upload_data(); | 523 << fetcher->upload_data(); |
524 EXPECT_EQ(2, CountOccurences(fetcher->upload_data(), "ADD_TO_DICT")) | 524 EXPECT_EQ(2, CountOccurences(fetcher->upload_data(), "ADD_TO_DICT")) |
525 << fetcher->upload_data(); | 525 << fetcher->upload_data(); |
526 } | 526 } |
527 | 527 |
528 } // namespace spellcheck | 528 } // namespace spellcheck |
OLD | NEW |