am 932d61d9: Merge "metrics: Fix import paths for headers."
* commit '932d61d9ae1f5ede45702c381694880cfb6d700b': metrics: Fix import paths for headers.
This commit is contained in:
commit
a8b959bb91
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/metrics_daemon.h"
|
||||
#include "metrics_daemon.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
|
@ -11,6 +11,7 @@
|
|||
#include <sysexits.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <base/bind.h>
|
||||
#include <base/files/file_path.h>
|
||||
#include <base/files/file_util.h>
|
||||
#include <base/hash.h>
|
||||
|
@ -20,7 +21,6 @@
|
|||
#include <base/strings/string_util.h>
|
||||
#include <base/strings/stringprintf.h>
|
||||
#include <base/sys_info.h>
|
||||
#include <chromeos/dbus/service_constants.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include <dbus/message.h>
|
||||
#include "uploader/upload_service.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <gtest/gtest_prod.h> // for FRIEND_TEST
|
||||
|
||||
#include "metrics/metrics_library.h"
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "persistent_integer.h"
|
||||
#include "uploader/upload_service.h"
|
||||
|
||||
using chromeos_metrics::PersistentInteger;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <chromeos/syslog_logging.h>
|
||||
#include <rootdev/rootdev.h>
|
||||
|
||||
#include "metrics/metrics_daemon.h"
|
||||
#include "metrics_daemon.h"
|
||||
|
||||
const char kScalingMaxFreqPath[] =
|
||||
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq";
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
#include <chromeos/dbus/service_constants.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "metrics/metrics_daemon.h"
|
||||
#include "metrics/metrics_library_mock.h"
|
||||
#include "metrics/persistent_integer_mock.h"
|
||||
#include "metrics_daemon.h"
|
||||
#include "metrics_library_mock.h"
|
||||
#include "persistent_integer_mock.h"
|
||||
|
||||
using base::FilePath;
|
||||
using base::StringPrintf;
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "metrics/serialization/serialization_utils.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
#include "serialization/serialization_utils.h"
|
||||
|
||||
#include "policy/device_policy.h"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "persistent_integer.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "persistent_integer.h"
|
||||
|
||||
namespace chromeos_metrics {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <base/files/file_enumerator.h>
|
||||
#include <base/files/file_util.h>
|
||||
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "persistent_integer.h"
|
||||
|
||||
const char kBackingFileName[] = "1.pibakf";
|
||||
const char kBackingFilePattern[] = "*.pibakf";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/serialization/serialization_utils.h"
|
||||
#include "serialization/serialization_utils.h"
|
||||
|
||||
#include <sys/file.h>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
|||
#include "base/memory/scoped_vector.h"
|
||||
#include "base/strings/string_split.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
|
||||
#define READ_WRITE_ALL_FILE_FLAGS \
|
||||
(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/serialization/serialization_utils.h"
|
||||
#include "serialization/serialization_utils.h"
|
||||
|
||||
#include <base/files/file_util.h>
|
||||
#include <base/files/scoped_temp_dir.h>
|
||||
|
@ -10,7 +10,7 @@
|
|||
#include <base/strings/stringprintf.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
|
||||
namespace metrics {
|
||||
namespace {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/timer.h"
|
||||
#include "timer.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "metrics/timer.h"
|
||||
#include "timer.h"
|
||||
|
||||
namespace chromeos_metrics {
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "metrics/metrics_library_mock.h"
|
||||
#include "metrics/timer.h"
|
||||
#include "metrics/timer_mock.h"
|
||||
#include "metrics_library_mock.h"
|
||||
#include "timer.h"
|
||||
#include "timer_mock.h"
|
||||
|
||||
using ::testing::_;
|
||||
using ::testing::Return;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/metrics_hashes.h"
|
||||
#include "uploader/metrics_hashes.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/md5.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/metrics_hashes.h"
|
||||
#include "uploader/metrics_hashes.h"
|
||||
|
||||
#include <base/format_macros.h>
|
||||
#include <base/macros.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "metrics/uploader/proto/system_profile.pb.h"
|
||||
#include "uploader/proto/system_profile.pb.h"
|
||||
#include "uploader/system_profile_setter.h"
|
||||
|
||||
// We use default values for the MetricsLogBase constructor as the setter will
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <base/macros.h>
|
||||
|
||||
#include "metrics/uploader/metrics_log_base.h"
|
||||
#include "uploader/metrics_log_base.h"
|
||||
|
||||
// This file defines a set of user experience metrics data recorded by
|
||||
// the MetricsService. This is the unit of data that is sent to the server.
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/metrics_log_base.h"
|
||||
#include "uploader/metrics_log_base.h"
|
||||
|
||||
#include "base/metrics/histogram_base.h"
|
||||
#include "base/metrics/histogram_samples.h"
|
||||
#include "metrics/uploader/metrics_hashes.h"
|
||||
#include "metrics/uploader/proto/histogram_event.pb.h"
|
||||
#include "metrics/uploader/proto/system_profile.pb.h"
|
||||
#include "metrics/uploader/proto/user_action_event.pb.h"
|
||||
#include "uploader/metrics_hashes.h"
|
||||
#include "uploader/proto/histogram_event.pb.h"
|
||||
#include "uploader/proto/system_profile.pb.h"
|
||||
#include "uploader/proto/user_action_event.pb.h"
|
||||
|
||||
using base::Histogram;
|
||||
using base::HistogramBase;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "base/macros.h"
|
||||
#include "base/metrics/histogram.h"
|
||||
#include "base/time/time.h"
|
||||
#include "metrics/uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
|
||||
namespace base {
|
||||
class HistogramSamples;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/metrics_log_base.h"
|
||||
#include "uploader/metrics_log_base.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
|||
#include <base/metrics/sample_vector.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "metrics/uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
|
||||
namespace metrics {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <string>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "metrics/uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "uploader/sender.h"
|
||||
|
||||
class SenderMock : public Sender {
|
||||
|
|
|
@ -14,9 +14,9 @@ option java_package = "org.chromium.components.metrics";
|
|||
|
||||
package metrics;
|
||||
|
||||
import "histogram_event.proto";
|
||||
import "system_profile.proto";
|
||||
import "user_action_event.proto";
|
||||
import "system/core/metrics/uploader/proto/histogram_event.proto";
|
||||
import "system/core/metrics/uploader/proto/system_profile.proto";
|
||||
import "system/core/metrics/uploader/proto/user_action_event.proto";
|
||||
|
||||
// Next tag: 13
|
||||
message ChromeUserMetricsExtension {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/sender_http.h"
|
||||
#include "uploader/sender_http.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <base/macros.h>
|
||||
|
||||
#include "metrics/uploader/sender.h"
|
||||
#include "uploader/sender.h"
|
||||
|
||||
// Sender implemented using http_utils from libchromeos
|
||||
class HttpSender : public Sender {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/system_profile_cache.h"
|
||||
#include "uploader/system_profile_cache.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -13,9 +13,9 @@
|
|||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "base/sys_info.h"
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "metrics/uploader/metrics_log_base.h"
|
||||
#include "metrics/uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "persistent_integer.h"
|
||||
#include "uploader/metrics_log_base.h"
|
||||
#include "uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "vboot/crossystem.h"
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
#include "base/compiler_specific.h"
|
||||
#include "base/gtest_prod_util.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "chromeos/osrelease_reader.h"
|
||||
#include "metrics/persistent_integer.h"
|
||||
#include "metrics/uploader/proto/system_profile.pb.h"
|
||||
#include "metrics/uploader/system_profile_setter.h"
|
||||
#include "persistent_integer.h"
|
||||
#include "uploader/proto/system_profile.pb.h"
|
||||
#include "uploader/system_profile_setter.h"
|
||||
|
||||
namespace metrics {
|
||||
class ChromeUserMetricsExtension;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "metrics/uploader/upload_service.h"
|
||||
#include "uploader/upload_service.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -17,11 +17,11 @@
|
|||
#include <base/metrics/statistics_recorder.h>
|
||||
#include <base/sha1.h>
|
||||
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "metrics/serialization/serialization_utils.h"
|
||||
#include "metrics/uploader/metrics_log.h"
|
||||
#include "metrics/uploader/sender_http.h"
|
||||
#include "metrics/uploader/system_profile_cache.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
#include "serialization/serialization_utils.h"
|
||||
#include "uploader/metrics_log.h"
|
||||
#include "uploader/sender_http.h"
|
||||
#include "uploader/system_profile_cache.h"
|
||||
|
||||
const int UploadService::kMaxFailedUpload = 10;
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
#include "base/metrics/histogram_snapshot_manager.h"
|
||||
|
||||
#include "metrics/metrics_library.h"
|
||||
#include "metrics/uploader/metrics_log.h"
|
||||
#include "metrics/uploader/sender.h"
|
||||
#include "metrics/uploader/system_profile_cache.h"
|
||||
#include "uploader/metrics_log.h"
|
||||
#include "uploader/sender.h"
|
||||
#include "uploader/system_profile_cache.h"
|
||||
|
||||
namespace metrics {
|
||||
class ChromeUserMetricsExtension;
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
#include "base/files/scoped_temp_dir.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/sys_info.h"
|
||||
#include "metrics/metrics_library_mock.h"
|
||||
#include "metrics/serialization/metric_sample.h"
|
||||
#include "metrics/uploader/metrics_log.h"
|
||||
#include "metrics/uploader/mock/mock_system_profile_setter.h"
|
||||
#include "metrics/uploader/mock/sender_mock.h"
|
||||
#include "metrics/uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "metrics/uploader/proto/histogram_event.pb.h"
|
||||
#include "metrics/uploader/proto/system_profile.pb.h"
|
||||
#include "metrics/uploader/system_profile_cache.h"
|
||||
#include "metrics/uploader/upload_service.h"
|
||||
#include "metrics_library_mock.h"
|
||||
#include "serialization/metric_sample.h"
|
||||
#include "uploader/metrics_log.h"
|
||||
#include "uploader/mock/mock_system_profile_setter.h"
|
||||
#include "uploader/mock/sender_mock.h"
|
||||
#include "uploader/proto/chrome_user_metrics_extension.pb.h"
|
||||
#include "uploader/proto/histogram_event.pb.h"
|
||||
#include "uploader/proto/system_profile.pb.h"
|
||||
#include "uploader/system_profile_cache.h"
|
||||
#include "uploader/upload_service.h"
|
||||
|
||||
static const char kMetricsServer[] = "https://clients4.google.com/uma/v2";
|
||||
static const char kMetricsFilePath[] = "/var/run/metrics/uma-events";
|
||||
|
|
Loading…
Reference in New Issue