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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/spellchecker/feedback_sender.h" | 16 #include "chrome/browser/spellchecker/feedback_sender.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/metrics/entropy_provider.h" | 18 #include "chrome/common/metrics/entropy_provider.h" |
19 #include "chrome/common/spellcheck_common.h" | 19 #include "chrome/common/spellcheck_common.h" |
20 #include "chrome/common/spellcheck_marker.h" | 20 #include "chrome/common/spellcheck_marker.h" |
21 #include "chrome/common/spellcheck_result.h" | 21 #include "chrome/common/spellcheck_result.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 uint32 select_hash = AddPendingFeedback(); | 489 uint32 select_hash = AddPendingFeedback(); |
490 feedback_->SelectedSuggestion(select_hash, 0); | 490 feedback_->SelectedSuggestion(select_hash, 0); |
491 feedback_->AddedToDictionary(add_to_dict_hash); | 491 feedback_->AddedToDictionary(add_to_dict_hash); |
492 feedback_->OnReceiveDocumentMarkers(kRendererProcessId, | 492 feedback_->OnReceiveDocumentMarkers(kRendererProcessId, |
493 std::vector<uint32>()); | 493 std::vector<uint32>()); |
494 EXPECT_TRUE(UploadDataContains("SELECT", 1)); | 494 EXPECT_TRUE(UploadDataContains("SELECT", 1)); |
495 EXPECT_TRUE(UploadDataContains("ADD_TO_DICT", 2)); | 495 EXPECT_TRUE(UploadDataContains("ADD_TO_DICT", 2)); |
496 } | 496 } |
497 | 497 |
498 } // namespace spellcheck | 498 } // namespace spellcheck |
OLD | NEW |