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

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_service_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <map> 5 #include <map>
6 #include <queue> 6 #include <queue>
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/file_util_proxy.h" 12 #include "base/file_util_proxy.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_temp_dir.h"
16 #include "base/message_loop.h" 15 #include "base/message_loop.h"
17 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "base/scoped_temp_dir.h"
18 #include "base/task.h" 18 #include "base/task.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 20 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
21 #include "chrome/common/net/test_url_fetcher_factory.h" 21 #include "chrome/common/net/test_url_fetcher_factory.h"
22 #include "chrome/common/net/url_fetcher.h" 22 #include "chrome/common/net/url_fetcher.h"
23 #include "chrome/common/safe_browsing/csd.pb.h" 23 #include "chrome/common/safe_browsing/csd.pb.h"
24 #include "content/browser/browser_thread.h" 24 #include "content/browser/browser_thread.h"
25 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
26 #include "net/url_request/url_request_status.h" 26 #include "net/url_request/url_request_status.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("1.2.3.4")); 271 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("1.2.3.4"));
272 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("200.1.1.1")); 272 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("200.1.1.1"));
273 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("2001:0db8:ac10:fe01::")); 273 EXPECT_FALSE(csd_service_->IsPrivateIPAddress("2001:0db8:ac10:fe01::"));
274 274
275 // If the address can't be parsed, the default is true. 275 // If the address can't be parsed, the default is true.
276 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("blah")); 276 EXPECT_TRUE(csd_service_->IsPrivateIPAddress("blah"));
277 } 277 }
278 278
279 } // namespace safe_browsing 279 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698