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

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

Issue 10483003: Move the rest of the content\test headers that are used by embedders to content\public\test. This w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/spellchecker/spelling_service_client.h" 13 #include "chrome/browser/spellchecker/spelling_service_client.h"
14 #include "chrome/common/spellcheck_result.h" 14 #include "chrome/common/spellcheck_result.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "content/test/test_url_fetcher_factory.h" 16 #include "content/public/test/test_url_fetcher_factory.h"
17 #include "net/base/load_flags.h" 17 #include "net/base/load_flags.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace { 20 namespace {
21 21
22 // A mock URL fetcher used in the TestingSpellingServiceClient class. This class 22 // A mock URL fetcher used in the TestingSpellingServiceClient class. This class
23 // verifies JSON-RPC requests when the SpellingServiceClient class sends them to 23 // verifies JSON-RPC requests when the SpellingServiceClient class sends them to
24 // the Spelling service. This class also verifies the SpellingServiceClient 24 // the Spelling service. This class also verifies the SpellingServiceClient
25 // class does not either send cookies to the Spelling service or accept cookies 25 // class does not either send cookies to the Spelling service or accept cookies
26 // from it. 26 // from it.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 client_.RequestTextCheck( 266 client_.RequestTextCheck(
267 &profile_, 267 &profile_,
268 0, 268 0,
269 kTests[i].request_type, 269 kTests[i].request_type,
270 ASCIIToUTF16(kTests[i].request_text), 270 ASCIIToUTF16(kTests[i].request_text),
271 base::Bind(&SpellingServiceClientTest::OnTextCheckComplete, 271 base::Bind(&SpellingServiceClientTest::OnTextCheckComplete,
272 base::Unretained(this))); 272 base::Unretained(this)));
273 client_.CallOnURLFetchComplete(); 273 client_.CallOnURLFetchComplete();
274 } 274 }
275 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698