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

Side by Side Diff: device/wake_lock/wake_lock_provider.h

Issue 2883903002: Add service unittest for WakeLockServiceImpl. (Closed)
Patch Set: Rename Fake* to *ForTesting Created 3 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
« no previous file with comments | « device/wake_lock/BUILD.gn ('k') | device/wake_lock/wake_lock_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_ 5 #ifndef DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_
6 #define DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_ 6 #define DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_
7 7
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" 10 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
(...skipping 20 matching lines...) Expand all
31 void GetWakeLockContextForID( 31 void GetWakeLockContextForID(
32 int context_id, 32 int context_id,
33 mojo::InterfaceRequest<mojom::WakeLockContext> request) override; 33 mojo::InterfaceRequest<mojom::WakeLockContext> request) override;
34 34
35 void GetWakeLockWithoutContext( 35 void GetWakeLockWithoutContext(
36 mojom::WakeLockType type, 36 mojom::WakeLockType type,
37 mojom::WakeLockReason reason, 37 mojom::WakeLockReason reason,
38 const std::string& description, 38 const std::string& description,
39 mojom::WakeLockServiceRequest request) override; 39 mojom::WakeLockServiceRequest request) override;
40 40
41 static bool is_in_service_unittest_;
42
41 private: 43 private:
42 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 44 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
43 WakeLockContextCallback native_view_getter_; 45 WakeLockContextCallback native_view_getter_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(WakeLockProvider); 47 DISALLOW_COPY_AND_ASSIGN(WakeLockProvider);
46 }; 48 };
47 49
48 } // namespace device 50 } // namespace device
49 51
50 #endif // DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_ 52 #endif // DEVICE_WAKE_LOCK_WAKE_LOCK_PROVIDER_H_
OLDNEW
« no previous file with comments | « device/wake_lock/BUILD.gn ('k') | device/wake_lock/wake_lock_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698