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

Side by Side Diff: content/browser/geolocation/network_location_provider_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 "base/json/json_reader.h" 5 #include "base/json/json_reader.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/browser/geolocation/fake_access_token_store.h" 12 #include "content/browser/geolocation/fake_access_token_store.h"
13 #include "content/browser/geolocation/network_location_provider.h" 13 #include "content/browser/geolocation/network_location_provider.h"
14 #include "content/test/test_url_fetcher_factory.h" 14 #include "content/public/test/test_url_fetcher_factory.h"
15 #include "net/url_request/url_request_status.h" 15 #include "net/url_request/url_request_status.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using content::FakeAccessTokenStore; 18 using content::FakeAccessTokenStore;
19 using content::Geoposition; 19 using content::Geoposition;
20 20
21 namespace { 21 namespace {
22 22
23 // Constants used in multiple tests. 23 // Constants used in multiple tests.
24 const char kTestServerUrl[] = "https://www.geolocation.test/service"; 24 const char kTestServerUrl[] = "https://www.geolocation.test/service";
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(1))); 554 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(1)));
555 } else { 555 } else {
556 const int evicted = i - kCacheSize; 556 const int evicted = i - kCacheSize;
557 EXPECT_FALSE(cache.FindPosition(CreateReferenceWifiScanData(evicted))); 557 EXPECT_FALSE(cache.FindPosition(CreateReferenceWifiScanData(evicted)));
558 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(evicted + 1))); 558 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(evicted + 1)));
559 } 559 }
560 } 560 }
561 } 561 }
562 562
563 } // namespace 563 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698