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

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

Issue 19479003: Use a direct include of the message_loop header in chrome/browser/, part 10. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698