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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 702593002: bluetooth: Initial simple mock content::WebBluetoothImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ Created 6 years, 1 month 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Converts a URL starting with file:///tmp/ to the local mapping. 503 // Converts a URL starting with file:///tmp/ to the local mapping.
504 std::string PathToLocalResource(const std::string& path); 504 std::string PathToLocalResource(const std::string& path);
505 505
506 // Used to set the device scale factor. 506 // Used to set the device scale factor.
507 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback); 507 void SetBackingScaleFactor(double value, v8::Handle<v8::Function> callback);
508 508
509 // Change the device color profile while running a layout test. 509 // Change the device color profile while running a layout test.
510 void SetColorProfile(const std::string& name, 510 void SetColorProfile(const std::string& name,
511 v8::Handle<v8::Function> callback); 511 v8::Handle<v8::Function> callback);
512 512
513 // Change the bluetooth test data while running a layout test.
514 void SetBluetoothMockDataSet(const std::string& name);
515
513 // Calls setlocale(LC_ALL, ...) for a specified locale. 516 // Calls setlocale(LC_ALL, ...) for a specified locale.
514 // Resets between tests. 517 // Resets between tests.
515 void SetPOSIXLocale(const std::string& locale); 518 void SetPOSIXLocale(const std::string& locale);
516 519
517 // MIDI function to control permission handling. 520 // MIDI function to control permission handling.
518 void SetMIDIAccessorResult(bool result); 521 void SetMIDIAccessorResult(bool result);
519 void SetMIDISysexPermission(bool value); 522 void SetMIDISysexPermission(bool value);
520 523
521 // Grants permission for desktop notifications to an origin 524 // Grants permission for desktop notifications to an origin
522 void GrantWebNotificationPermission(const GURL& origin, 525 void GrantWebNotificationPermission(const GURL& origin,
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 bool use_mock_theme_; 778 bool use_mock_theme_;
776 779
777 base::WeakPtrFactory<TestRunner> weak_factory_; 780 base::WeakPtrFactory<TestRunner> weak_factory_;
778 781
779 DISALLOW_COPY_AND_ASSIGN(TestRunner); 782 DISALLOW_COPY_AND_ASSIGN(TestRunner);
780 }; 783 };
781 784
782 } // namespace content 785 } // namespace content
783 786
784 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 787 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.cc ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698