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

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: fix missing part device_cloud_policy_manager_chromeos_unittest.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/version.h" 15 #include "base/version.h"
16 #include "components/component_updater/crx_update_item.h" 16 #include "components/component_updater/crx_update_item.h"
17 #include "components/component_updater/test/test_configurator.h" 17 #include "components/component_updater/test/test_configurator.h"
18 #include "components/component_updater/test/url_request_post_interceptor.h" 18 #include "components/component_updater/test/url_request_post_interceptor.h"
19 #include "components/component_updater/update_checker.h" 19 #include "components/component_updater/update_checker.h"
20 #include "net/url_request/url_request_test_util.h" 20 #include "net/url_request/url_request_test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 using std::string;
25
24 namespace component_updater { 26 namespace component_updater {
25 27
26 namespace { 28 namespace {
27 29
28 base::FilePath test_file(const char* file) { 30 base::FilePath test_file(const char* file) {
29 base::FilePath path; 31 base::FilePath path;
30 PathService::Get(base::DIR_SOURCE_ROOT, &path); 32 PathService::Get(base::DIR_SOURCE_ROOT, &path);
31 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data") 33 return path.AppendASCII("components").AppendASCII("test").AppendASCII("data")
32 .AppendASCII("component_updater").AppendASCII(file); 34 .AppendASCII("component_updater").AppendASCII(file);
33 } 35 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 EXPECT_EQ(1, post_interceptor_->GetCount()) 230 EXPECT_EQ(1, post_interceptor_->GetCount())
229 << post_interceptor_->GetRequestsAsString(); 231 << post_interceptor_->GetRequestsAsString();
230 232
231 EXPECT_EQ(config_->UpdateUrl().front(), original_url_); 233 EXPECT_EQ(config_->UpdateUrl().front(), original_url_);
232 EXPECT_EQ(403, error_); 234 EXPECT_EQ(403, error_);
233 EXPECT_STREQ("network error", error_message_.c_str()); 235 EXPECT_STREQ("network error", error_message_.c_str());
234 EXPECT_EQ(0ul, results_.list.size()); 236 EXPECT_EQ(0ul, results_.list.size());
235 } 237 }
236 238
237 } // namespace component_updater 239 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698