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

Side by Side Diff: device/sensors/device_sensor_service.cc

Issue 2812223006: Replace device_sensor browsertest by service unittest. (Closed)
Patch Set: eliminate "unreachable code" warning. Created 3 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 unified diff | Download patch
« no previous file with comments | « device/sensors/device_sensor_host.cc ('k') | device/sensors/public/cpp/BUILD.gn » ('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 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 #include "device/sensors/device_sensor_service.h" 5 #include "device/sensors/device_sensor_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 data_fetcher_.reset(); 110 data_fetcher_.reset();
111 } 111 }
112 is_shutdown_ = true; 112 is_shutdown_ = true;
113 } 113 }
114 114
115 void DeviceSensorService::SetDataFetcherForTesting( 115 void DeviceSensorService::SetDataFetcherForTesting(
116 DataFetcherSharedMemory* test_data_fetcher) { 116 DataFetcherSharedMemory* test_data_fetcher) {
117 if (data_fetcher_) 117 if (data_fetcher_)
118 data_fetcher_->Shutdown(); 118 data_fetcher_->Shutdown();
119 data_fetcher_.reset(test_data_fetcher); 119 data_fetcher_.reset(test_data_fetcher);
120 is_shutdown_ = false;
120 } 121 }
121 122
122 } // namespace device 123 } // namespace device
OLDNEW
« no previous file with comments | « device/sensors/device_sensor_host.cc ('k') | device/sensors/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698