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

Side by Side Diff: components/test_runner/test_runner.h

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 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
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 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 void ClearAllDatabases(); 477 void ClearAllDatabases();
478 // Sets the default quota for all origins 478 // Sets the default quota for all origins
479 void SetDatabaseQuota(int quota); 479 void SetDatabaseQuota(int quota);
480 480
481 // Changes the cookie policy from the default to allow all cookies. 481 // Changes the cookie policy from the default to allow all cookies.
482 void SetAlwaysAcceptCookies(bool accept); 482 void SetAlwaysAcceptCookies(bool accept);
483 483
484 // Converts a URL starting with file:///tmp/ to the local mapping. 484 // Converts a URL starting with file:///tmp/ to the local mapping.
485 std::string PathToLocalResource(const std::string& path); 485 std::string PathToLocalResource(const std::string& path);
486 486
487 // Enables mock geofencing service while running a layout test.
488 // |service_available| indicates if the mock service should mock geofencing
489 // being available or not.
490 void SetGeofencingMockProvider(bool service_available);
491
492 // Disables mock geofencing service while running a layout test.
493 void ClearGeofencingMockProvider();
494
495 // Set the mock geofencing position while running a layout test.
496 void SetGeofencingMockPosition(double latitude, double longitude);
497
498 // Sets the permission's |name| to |value| for a given {origin, embedder} 487 // Sets the permission's |name| to |value| for a given {origin, embedder}
499 // tuple. 488 // tuple.
500 void SetPermission(const std::string& name, 489 void SetPermission(const std::string& name,
501 const std::string& value, 490 const std::string& value,
502 const GURL& origin, 491 const GURL& origin,
503 const GURL& embedding_origin); 492 const GURL& embedding_origin);
504 493
505 // Resolve the beforeinstallprompt event with the matching request id. 494 // Resolve the beforeinstallprompt event with the matching request id.
506 void ResolveBeforeInstallPromptPromise(int request_id, 495 void ResolveBeforeInstallPromptPromise(int request_id,
507 const std::string& platform); 496 const std::string& platform);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; 634 std::set<blink::WebWidget*> widgets_with_scheduled_animations_;
646 635
647 base::WeakPtrFactory<TestRunner> weak_factory_; 636 base::WeakPtrFactory<TestRunner> weak_factory_;
648 637
649 DISALLOW_COPY_AND_ASSIGN(TestRunner); 638 DISALLOW_COPY_AND_ASSIGN(TestRunner);
650 }; 639 };
651 640
652 } // namespace test_runner 641 } // namespace test_runner
653 642
654 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 643 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover_unittest.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698