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

Side by Side Diff: components/component_updater/test/update_checker_unittest.cc

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve ramant's comment, using std:: for .cc Created 6 years 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
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 <string>
6
5 #include "base/bind.h" 7 #include "base/bind.h"
6 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
7 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
8 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
13 #include "base/path_service.h" 15 #include "base/path_service.h"
14 #include "base/run_loop.h" 16 #include "base/run_loop.h"
15 #include "base/version.h" 17 #include "base/version.h"
16 #include "components/component_updater/crx_update_item.h" 18 #include "components/component_updater/crx_update_item.h"
17 #include "components/component_updater/test/test_configurator.h" 19 #include "components/component_updater/test/test_configurator.h"
18 #include "components/component_updater/test/url_request_post_interceptor.h" 20 #include "components/component_updater/test/url_request_post_interceptor.h"
19 #include "components/component_updater/update_checker.h" 21 #include "components/component_updater/update_checker.h"
20 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
22 #include "url/gurl.h" 24 #include "url/gurl.h"
23 25
26 using std::string;
27
24 namespace component_updater { 28 namespace component_updater {
25 29
26 namespace { 30 namespace {
27 31
28 base::FilePath test_file(const char* file) { 32 base::FilePath test_file(const char* file) {
29 base::FilePath path; 33 base::FilePath path;
30 PathService::Get(base::DIR_SOURCE_ROOT, &path); 34 PathService::Get(base::DIR_SOURCE_ROOT, &path);
31 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data") 35 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data")
32 .AppendASCII("component_updater").AppendASCII(file); 36 .AppendASCII("component_updater").AppendASCII(file);
33 } 37 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 EXPECT_EQ(1, post_interceptor_->GetCount()) 232 EXPECT_EQ(1, post_interceptor_->GetCount())
229 << post_interceptor_->GetRequestsAsString(); 233 << post_interceptor_->GetRequestsAsString();
230 234
231 EXPECT_EQ(config_->UpdateUrl().front(), original_url_); 235 EXPECT_EQ(config_->UpdateUrl().front(), original_url_);
232 EXPECT_EQ(403, error_); 236 EXPECT_EQ(403, error_);
233 EXPECT_STREQ("network error", error_message_.c_str()); 237 EXPECT_STREQ("network error", error_message_.c_str());
234 EXPECT_EQ(0ul, results_.list.size()); 238 EXPECT_EQ(0ul, results_.list.size());
235 } 239 }
236 240
237 } // namespace component_updater 241 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698