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

Side by Side Diff: net/url_request/sdch_dictionary_fetcher_unittest.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/url_request/sdch_dictionary_fetcher.cc ('k') | net/url_request/url_request_simple_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/url_request/sdch_dictionary_fetcher.h" 5 #include "net/url_request/sdch_dictionary_fetcher.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "net/base/sdch_manager.h" 14 #include "net/base/sdch_manager.h"
15 #include "net/url_request/url_request_data_job.h" 15 #include "net/url_request/url_request_data_job.h"
16 #include "net/url_request/url_request_filter.h" 16 #include "net/url_request/url_request_filter.h"
17 #include "net/url_request/url_request_interceptor.h" 17 #include "net/url_request/url_request_interceptor.h"
18 #include "net/url_request/url_request_test_util.h" 18 #include "net/url_request/url_request_test_util.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "url/gurl.h"
21 20
22 namespace net { 21 namespace net {
23 22
24 namespace { 23 namespace {
25 24
26 const char kSampleBufferContext[] = "This is a sample buffer."; 25 const char kSampleBufferContext[] = "This is a sample buffer.";
27 const char kTestDomain[] = "top.domain.test"; 26 const char kTestDomain[] = "top.domain.test";
28 27
29 class URLRequestSpecifiedResponseJob : public URLRequestSimpleJob { 28 class URLRequestSpecifiedResponseJob : public URLRequestSimpleJob {
30 public: 29 public:
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 URLRequestSpecifiedResponseJob::ExpectedResponseForURL(dictionary0_url), 269 URLRequestSpecifiedResponseJob::ExpectedResponseForURL(dictionary0_url),
271 additions[0].dictionary_text); 270 additions[0].dictionary_text);
272 EXPECT_EQ( 271 EXPECT_EQ(
273 URLRequestSpecifiedResponseJob::ExpectedResponseForURL(dictionary1_url), 272 URLRequestSpecifiedResponseJob::ExpectedResponseForURL(dictionary1_url),
274 additions[1].dictionary_text); 273 additions[1].dictionary_text);
275 } 274 }
276 275
277 } // namespace 276 } // namespace
278 277
279 } // namespace net 278 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/sdch_dictionary_fetcher.cc ('k') | net/url_request/url_request_simple_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698