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

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

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 // Unit tests for |FeedbackSender| object. 5 // Unit tests for |FeedbackSender| object.
6 6
7 #include "chrome/browser/spellchecker/feedback_sender.h" 7 #include "chrome/browser/spellchecker/feedback_sender.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/metrics/entropy_provider.h"
19 #include "chrome/common/spellcheck_common.h" 18 #include "chrome/common/spellcheck_common.h"
20 #include "chrome/common/spellcheck_marker.h" 19 #include "chrome/common/spellcheck_marker.h"
21 #include "chrome/common/spellcheck_result.h" 20 #include "chrome/common/spellcheck_result.h"
22 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
22 #include "components/variations/entropy_provider.h"
23 #include "content/public/test/test_browser_thread.h" 23 #include "content/public/test/test_browser_thread.h"
24 #include "net/url_request/test_url_fetcher_factory.h" 24 #include "net/url_request/test_url_fetcher_factory.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 namespace spellcheck { 27 namespace spellcheck {
28 28
29 namespace { 29 namespace {
30 30
31 const char kCountry[] = "USA"; 31 const char kCountry[] = "USA";
32 const char kLanguage[] = "en"; 32 const char kLanguage[] = "en";
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 feedback_->OnSpellcheckResults(kRendererProcessId, 518 feedback_->OnSpellcheckResults(kRendererProcessId,
519 UTF8ToUTF16(kText), 519 UTF8ToUTF16(kText),
520 std::vector<SpellCheckMarker>(), 520 std::vector<SpellCheckMarker>(),
521 &results); 521 &results);
522 feedback_->OnReceiveDocumentMarkers(kRendererProcessId, 522 feedback_->OnReceiveDocumentMarkers(kRendererProcessId,
523 std::vector<uint32>()); 523 std::vector<uint32>());
524 EXPECT_FALSE(IsUploadingData()); 524 EXPECT_FALSE(IsUploadingData());
525 } 525 }
526 526
527 } // namespace spellcheck 527 } // namespace spellcheck
OLDNEW
« no previous file with comments | « chrome/browser/search/search_unittest.cc ('k') | chrome/browser/ui/bookmarks/bookmark_prompt_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698