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

Unified Diff: content/test/mock_geolocation.h

Issue 10070012: Geolocation support for chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/geolocation.h ('k') | content/test/mock_geolocation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_geolocation.h
diff --git a/content/test/mock_geolocation.h b/content/test/mock_geolocation.h
deleted file mode 100644
index 678f0a353d9ec71aa5fb4e5af58af50fb7c7e991..0000000000000000000000000000000000000000
--- a/content/test/mock_geolocation.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_TEST_MOCK_GEOLOCATION_H_
-#define CONTENT_TEST_MOCK_GEOLOCATION_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-
-class GeolocationArbitratorDependencyFactory;
-
-namespace content {
-
-// Creates a mock location provider that gives a valid location.
-class MockGeolocation {
- public:
- MockGeolocation();
- ~MockGeolocation();
-
- // Call this in the test's Setup function.
- void Setup();
-
- // Call this in the test's TearDown function.
- void TearDown();
-
- void GetCurrentPosition(double* latitude, double* longitude) const;
- void SetCurrentPosition(double latitude, double longitude);
-
- private:
- scoped_refptr<GeolocationArbitratorDependencyFactory> dependency_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(MockGeolocation);
-};
-
-} // namespace content
-
-#endif // CONTENT_TEST_MOCK_GEOLOCATION_H_
« no previous file with comments | « content/public/browser/geolocation.h ('k') | content/test/mock_geolocation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698