summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Simonnet2015-08-12 15:49:16 -0500
committerGerrit Code Review2015-08-12 15:49:16 -0500
commit497e38db9d79e786ffc3916d135c85fc284aeca1 (patch)
tree0107fb2853de5b3917a925e153b29154e88a908d
parent0b973da5324a7f869fe9cf62c95241e502c91902 (diff)
parent52e5b99983c1f7ff0b9a1f3b4b80d779073b21c8 (diff)
downloadplatform-system-core-497e38db9d79e786ffc3916d135c85fc284aeca1.tar.gz
platform-system-core-497e38db9d79e786ffc3916d135c85fc284aeca1.tar.xz
platform-system-core-497e38db9d79e786ffc3916d135c85fc284aeca1.zip
Merge "metricsd: Relicense as Apache 2."
-rw-r--r--metricsd/MODULE_LICENSE_BSD0
-rw-r--r--metricsd/NOTICE27
-rw-r--r--metricsd/README18
-rw-r--r--metricsd/c_metrics_library.cc18
-rw-r--r--metricsd/include/metrics/c_metrics_library.h18
-rw-r--r--metricsd/include/metrics/metrics_library.h18
-rw-r--r--metricsd/metrics_client.cc18
-rw-r--r--metricsd/metrics_daemon.cc18
-rw-r--r--metricsd/metrics_daemon.h18
-rw-r--r--metricsd/metrics_daemon_main.cc18
-rw-r--r--metricsd/metrics_daemon_test.cc18
-rw-r--r--metricsd/metrics_library.cc18
-rw-r--r--metricsd/metrics_library_mock.h18
-rw-r--r--metricsd/metrics_library_test.cc18
-rw-r--r--metricsd/persistent_integer.cc18
-rw-r--r--metricsd/persistent_integer.h18
-rw-r--r--metricsd/persistent_integer_mock.h18
-rw-r--r--metricsd/persistent_integer_test.cc18
-rw-r--r--metricsd/serialization/metric_sample.cc18
-rw-r--r--metricsd/serialization/metric_sample.h18
-rw-r--r--metricsd/serialization/serialization_utils.cc18
-rw-r--r--metricsd/serialization/serialization_utils.h18
-rw-r--r--metricsd/serialization/serialization_utils_unittest.cc18
-rw-r--r--metricsd/timer.cc18
-rw-r--r--metricsd/timer.h18
-rw-r--r--metricsd/timer_mock.h18
-rw-r--r--metricsd/timer_test.cc18
-rw-r--r--metricsd/uploader/metrics_hashes.cc18
-rw-r--r--metricsd/uploader/metrics_hashes.h18
-rw-r--r--metricsd/uploader/metrics_hashes_unittest.cc18
-rw-r--r--metricsd/uploader/metrics_log.cc18
-rw-r--r--metricsd/uploader/metrics_log.h18
-rw-r--r--metricsd/uploader/metrics_log_base.cc18
-rw-r--r--metricsd/uploader/metrics_log_base.h18
-rw-r--r--metricsd/uploader/metrics_log_base_unittest.cc18
-rw-r--r--metricsd/uploader/mock/mock_system_profile_setter.h18
-rw-r--r--metricsd/uploader/mock/sender_mock.cc18
-rw-r--r--metricsd/uploader/mock/sender_mock.h18
-rw-r--r--metricsd/uploader/proto/README18
-rw-r--r--metricsd/uploader/proto/chrome_user_metrics_extension.proto18
-rw-r--r--metricsd/uploader/proto/histogram_event.proto18
-rw-r--r--metricsd/uploader/proto/system_profile.proto18
-rw-r--r--metricsd/uploader/proto/user_action_event.proto18
-rw-r--r--metricsd/uploader/sender.h18
-rw-r--r--metricsd/uploader/sender_http.cc18
-rw-r--r--metricsd/uploader/sender_http.h18
-rw-r--r--metricsd/uploader/system_profile_cache.cc18
-rw-r--r--metricsd/uploader/system_profile_cache.h18
-rw-r--r--metricsd/uploader/system_profile_setter.h18
-rw-r--r--metricsd/uploader/upload_service.cc18
-rw-r--r--metricsd/uploader/upload_service.h18
-rw-r--r--metricsd/uploader/upload_service_test.cc18
52 files changed, 750 insertions, 177 deletions
diff --git a/metricsd/MODULE_LICENSE_BSD b/metricsd/MODULE_LICENSE_BSD
deleted file mode 100644
index e69de29bb..000000000
--- a/metricsd/MODULE_LICENSE_BSD
+++ /dev/null
diff --git a/metricsd/NOTICE b/metricsd/NOTICE
deleted file mode 100644
index b9e779f92..000000000
--- a/metricsd/NOTICE
+++ /dev/null
@@ -1,27 +0,0 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved.
2//
3// Redistribution and use in source and binary forms, with or without
4// modification, are permitted provided that the following conditions are
5// met:
6//
7// * Redistributions of source code must retain the above copyright
8// notice, this list of conditions and the following disclaimer.
9// * Redistributions in binary form must reproduce the above
10// copyright notice, this list of conditions and the following disclaimer
11// in the documentation and/or other materials provided with the
12// distribution.
13// * Neither the name of Google Inc. nor the names of its
14// contributors may be used to endorse or promote products derived from
15// this software without specific prior written permission.
16//
17// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/metricsd/README b/metricsd/README
index 4b92af35f..d4c9a0e58 100644
--- a/metricsd/README
+++ b/metricsd/README
@@ -1,6 +1,18 @@
1Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1Copyright (C) 2015 The Android Open Source Project
2Use of this source code is governed by a BSD-style license that can be 2
3found in the LICENSE file. 3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15================================================================================
4 16
5The Chrome OS "metrics" package contains utilities for client-side user metric 17The Chrome OS "metrics" package contains utilities for client-side user metric
6collection. 18collection.
diff --git a/metricsd/c_metrics_library.cc b/metricsd/c_metrics_library.cc
index 90a2d59c9..05038766c 100644
--- a/metricsd/c_metrics_library.cc
+++ b/metricsd/c_metrics_library.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5// 17//
6// C wrapper to libmetrics 18// C wrapper to libmetrics
diff --git a/metricsd/include/metrics/c_metrics_library.h b/metricsd/include/metrics/c_metrics_library.h
index 7f78e43a7..4e7e66683 100644
--- a/metricsd/include/metrics/c_metrics_library.h
+++ b/metricsd/include/metrics/c_metrics_library.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_C_METRICS_LIBRARY_H_ 17#ifndef METRICS_C_METRICS_LIBRARY_H_
6#define METRICS_C_METRICS_LIBRARY_H_ 18#define METRICS_C_METRICS_LIBRARY_H_
diff --git a/metricsd/include/metrics/metrics_library.h b/metricsd/include/metrics/metrics_library.h
index 1c124d2ae..4917a7ce4 100644
--- a/metricsd/include/metrics/metrics_library.h
+++ b/metricsd/include/metrics/metrics_library.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_METRICS_LIBRARY_H_ 17#ifndef METRICS_METRICS_LIBRARY_H_
6#define METRICS_METRICS_LIBRARY_H_ 18#define METRICS_METRICS_LIBRARY_H_
diff --git a/metricsd/metrics_client.cc b/metricsd/metrics_client.cc
index b587e3a24..57e96c29e 100644
--- a/metricsd/metrics_client.cc
+++ b/metricsd/metrics_client.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <cstdio> 17#include <cstdio>
6#include <cstdlib> 18#include <cstdlib>
diff --git a/metricsd/metrics_daemon.cc b/metricsd/metrics_daemon.cc
index f9061d563..069f68e25 100644
--- a/metricsd/metrics_daemon.cc
+++ b/metricsd/metrics_daemon.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "metrics_daemon.h" 17#include "metrics_daemon.h"
6 18
diff --git a/metricsd/metrics_daemon.h b/metricsd/metrics_daemon.h
index ccac52a19..6f5a3bfb4 100644
--- a/metricsd/metrics_daemon.h
+++ b/metricsd/metrics_daemon.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_METRICS_DAEMON_H_ 17#ifndef METRICS_METRICS_DAEMON_H_
6#define METRICS_METRICS_DAEMON_H_ 18#define METRICS_METRICS_DAEMON_H_
diff --git a/metricsd/metrics_daemon_main.cc b/metricsd/metrics_daemon_main.cc
index 6c580ba25..c3d5cab7e 100644
--- a/metricsd/metrics_daemon_main.cc
+++ b/metricsd/metrics_daemon_main.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <base/at_exit.h> 17#include <base/at_exit.h>
6#include <base/command_line.h> 18#include <base/command_line.h>
diff --git a/metricsd/metrics_daemon_test.cc b/metricsd/metrics_daemon_test.cc
index 5aa7ab88e..9b5b58e2b 100644
--- a/metricsd/metrics_daemon_test.cc
+++ b/metricsd/metrics_daemon_test.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <inttypes.h> 17#include <inttypes.h>
6#include <utime.h> 18#include <utime.h>
diff --git a/metricsd/metrics_library.cc b/metricsd/metrics_library.cc
index f777f2823..c1998a643 100644
--- a/metricsd/metrics_library.cc
+++ b/metricsd/metrics_library.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "metrics/metrics_library.h" 17#include "metrics/metrics_library.h"
6 18
diff --git a/metricsd/metrics_library_mock.h b/metricsd/metrics_library_mock.h
index 99892bfa0..3de87a9f0 100644
--- a/metricsd/metrics_library_mock.h
+++ b/metricsd/metrics_library_mock.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_METRICS_LIBRARY_MOCK_H_ 17#ifndef METRICS_METRICS_LIBRARY_MOCK_H_
6#define METRICS_METRICS_LIBRARY_MOCK_H_ 18#define METRICS_METRICS_LIBRARY_MOCK_H_
diff --git a/metricsd/metrics_library_test.cc b/metricsd/metrics_library_test.cc
index 7ede303c8..c58e3fbf7 100644
--- a/metricsd/metrics_library_test.cc
+++ b/metricsd/metrics_library_test.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <cstring> 17#include <cstring>
6 18
diff --git a/metricsd/persistent_integer.cc b/metricsd/persistent_integer.cc
index 0dcd52af1..9fa5c1e31 100644
--- a/metricsd/persistent_integer.cc
+++ b/metricsd/persistent_integer.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "persistent_integer.h" 17#include "persistent_integer.h"
6 18
diff --git a/metricsd/persistent_integer.h b/metricsd/persistent_integer.h
index b1cfcf4ef..fec001fc7 100644
--- a/metricsd/persistent_integer.h
+++ b/metricsd/persistent_integer.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_PERSISTENT_INTEGER_H_ 17#ifndef METRICS_PERSISTENT_INTEGER_H_
6#define METRICS_PERSISTENT_INTEGER_H_ 18#define METRICS_PERSISTENT_INTEGER_H_
diff --git a/metricsd/persistent_integer_mock.h b/metricsd/persistent_integer_mock.h
index 31bfc3515..acc5389bf 100644
--- a/metricsd/persistent_integer_mock.h
+++ b/metricsd/persistent_integer_mock.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_PERSISTENT_INTEGER_MOCK_H_ 17#ifndef METRICS_PERSISTENT_INTEGER_MOCK_H_
6#define METRICS_PERSISTENT_INTEGER_MOCK_H_ 18#define METRICS_PERSISTENT_INTEGER_MOCK_H_
diff --git a/metricsd/persistent_integer_test.cc b/metricsd/persistent_integer_test.cc
index 4fccb7286..19801f927 100644
--- a/metricsd/persistent_integer_test.cc
+++ b/metricsd/persistent_integer_test.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <gtest/gtest.h> 17#include <gtest/gtest.h>
6 18
diff --git a/metricsd/serialization/metric_sample.cc b/metricsd/serialization/metric_sample.cc
index bc6583d7b..76a47c095 100644
--- a/metricsd/serialization/metric_sample.cc
+++ b/metricsd/serialization/metric_sample.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "serialization/metric_sample.h" 17#include "serialization/metric_sample.h"
6 18
diff --git a/metricsd/serialization/metric_sample.h b/metricsd/serialization/metric_sample.h
index 877114d0a..5a4e4ae8a 100644
--- a/metricsd/serialization/metric_sample.h
+++ b/metricsd/serialization/metric_sample.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_SERIALIZATION_METRIC_SAMPLE_H_ 17#ifndef METRICS_SERIALIZATION_METRIC_SAMPLE_H_
6#define METRICS_SERIALIZATION_METRIC_SAMPLE_H_ 18#define METRICS_SERIALIZATION_METRIC_SAMPLE_H_
diff --git a/metricsd/serialization/serialization_utils.cc b/metricsd/serialization/serialization_utils.cc
index d18dcd754..6dd8258d2 100644
--- a/metricsd/serialization/serialization_utils.cc
+++ b/metricsd/serialization/serialization_utils.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "serialization/serialization_utils.h" 17#include "serialization/serialization_utils.h"
6 18
diff --git a/metricsd/serialization/serialization_utils.h b/metricsd/serialization/serialization_utils.h
index 5af61660f..67d46759f 100644
--- a/metricsd/serialization/serialization_utils.h
+++ b/metricsd/serialization/serialization_utils.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_ 17#ifndef METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_
6#define METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_ 18#define METRICS_SERIALIZATION_SERIALIZATION_UTILS_H_
diff --git a/metricsd/serialization/serialization_utils_unittest.cc b/metricsd/serialization/serialization_utils_unittest.cc
index fb802bcc9..7a572de98 100644
--- a/metricsd/serialization/serialization_utils_unittest.cc
+++ b/metricsd/serialization/serialization_utils_unittest.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "serialization/serialization_utils.h" 17#include "serialization/serialization_utils.h"
6 18
diff --git a/metricsd/timer.cc b/metricsd/timer.cc
index ce4bf67a3..7b00cc074 100644
--- a/metricsd/timer.cc
+++ b/metricsd/timer.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "timer.h" 17#include "timer.h"
6 18
diff --git a/metricsd/timer.h b/metricsd/timer.h
index 52cc57892..b36ffffc1 100644
--- a/metricsd/timer.h
+++ b/metricsd/timer.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5// Timer - class that provides timer tracking. 17// Timer - class that provides timer tracking.
6 18
diff --git a/metricsd/timer_mock.h b/metricsd/timer_mock.h
index ed76f12cd..8c9e8d89c 100644
--- a/metricsd/timer_mock.h
+++ b/metricsd/timer_mock.h
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_TIMER_MOCK_H_ 17#ifndef METRICS_TIMER_MOCK_H_
6#define METRICS_TIMER_MOCK_H_ 18#define METRICS_TIMER_MOCK_H_
diff --git a/metricsd/timer_test.cc b/metricsd/timer_test.cc
index b1689bf8c..ab027d462 100644
--- a/metricsd/timer_test.cc
+++ b/metricsd/timer_test.cc
@@ -1,6 +1,18 @@
1// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <stdint.h> 17#include <stdint.h>
6 18
diff --git a/metricsd/uploader/metrics_hashes.cc b/metricsd/uploader/metrics_hashes.cc
index f9d0cfeaa..208c560c3 100644
--- a/metricsd/uploader/metrics_hashes.cc
+++ b/metricsd/uploader/metrics_hashes.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/metrics_hashes.h" 17#include "uploader/metrics_hashes.h"
6 18
diff --git a/metricsd/uploader/metrics_hashes.h b/metricsd/uploader/metrics_hashes.h
index 8679077e1..1082b42eb 100644
--- a/metricsd/uploader/metrics_hashes.h
+++ b/metricsd/uploader/metrics_hashes.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_METRICS_HASHES_H_ 17#ifndef METRICS_UPLOADER_METRICS_HASHES_H_
6#define METRICS_UPLOADER_METRICS_HASHES_H_ 18#define METRICS_UPLOADER_METRICS_HASHES_H_
diff --git a/metricsd/uploader/metrics_hashes_unittest.cc b/metricsd/uploader/metrics_hashes_unittest.cc
index 8cdc7a92d..b8c25754b 100644
--- a/metricsd/uploader/metrics_hashes_unittest.cc
+++ b/metricsd/uploader/metrics_hashes_unittest.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/metrics_hashes.h" 17#include "uploader/metrics_hashes.h"
6 18
diff --git a/metricsd/uploader/metrics_log.cc b/metricsd/uploader/metrics_log.cc
index 6f11f8aac..5f4c5991e 100644
--- a/metricsd/uploader/metrics_log.cc
+++ b/metricsd/uploader/metrics_log.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/metrics_log.h" 17#include "uploader/metrics_log.h"
6 18
diff --git a/metricsd/uploader/metrics_log.h b/metricsd/uploader/metrics_log.h
index a62798fb3..50fed8938 100644
--- a/metricsd/uploader/metrics_log.h
+++ b/metricsd/uploader/metrics_log.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_METRICS_LOG_H_ 17#ifndef METRICS_UPLOADER_METRICS_LOG_H_
6#define METRICS_UPLOADER_METRICS_LOG_H_ 18#define METRICS_UPLOADER_METRICS_LOG_H_
diff --git a/metricsd/uploader/metrics_log_base.cc b/metricsd/uploader/metrics_log_base.cc
index 3ae01e85a..ee325ae86 100644
--- a/metricsd/uploader/metrics_log_base.cc
+++ b/metricsd/uploader/metrics_log_base.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/metrics_log_base.h" 17#include "uploader/metrics_log_base.h"
6 18
diff --git a/metricsd/uploader/metrics_log_base.h b/metricsd/uploader/metrics_log_base.h
index 4173335fb..f4e19956e 100644
--- a/metricsd/uploader/metrics_log_base.h
+++ b/metricsd/uploader/metrics_log_base.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5// This file defines a set of user experience metrics data recorded by 17// This file defines a set of user experience metrics data recorded by
6// the MetricsService. This is the unit of data that is sent to the server. 18// the MetricsService. This is the unit of data that is sent to the server.
diff --git a/metricsd/uploader/metrics_log_base_unittest.cc b/metricsd/uploader/metrics_log_base_unittest.cc
index dc03f0032..980afd536 100644
--- a/metricsd/uploader/metrics_log_base_unittest.cc
+++ b/metricsd/uploader/metrics_log_base_unittest.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/metrics_log_base.h" 17#include "uploader/metrics_log_base.h"
6 18
diff --git a/metricsd/uploader/mock/mock_system_profile_setter.h b/metricsd/uploader/mock/mock_system_profile_setter.h
index c6e8f0d1e..c714e9c94 100644
--- a/metricsd/uploader/mock/mock_system_profile_setter.h
+++ b/metricsd/uploader/mock/mock_system_profile_setter.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_MOCK_MOCK_SYSTEM_PROFILE_SETTER_H_ 17#ifndef METRICS_UPLOADER_MOCK_MOCK_SYSTEM_PROFILE_SETTER_H_
6#define METRICS_UPLOADER_MOCK_MOCK_SYSTEM_PROFILE_SETTER_H_ 18#define METRICS_UPLOADER_MOCK_MOCK_SYSTEM_PROFILE_SETTER_H_
diff --git a/metricsd/uploader/mock/sender_mock.cc b/metricsd/uploader/mock/sender_mock.cc
index 064ec6d01..bb4dc7dcd 100644
--- a/metricsd/uploader/mock/sender_mock.cc
+++ b/metricsd/uploader/mock/sender_mock.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/mock/sender_mock.h" 17#include "uploader/mock/sender_mock.h"
6 18
diff --git a/metricsd/uploader/mock/sender_mock.h b/metricsd/uploader/mock/sender_mock.h
index 0a15d6163..e79233f29 100644
--- a/metricsd/uploader/mock/sender_mock.h
+++ b/metricsd/uploader/mock/sender_mock.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_MOCK_SENDER_MOCK_H_ 17#ifndef METRICS_UPLOADER_MOCK_SENDER_MOCK_H_
6#define METRICS_UPLOADER_MOCK_SENDER_MOCK_H_ 18#define METRICS_UPLOADER_MOCK_SENDER_MOCK_H_
diff --git a/metricsd/uploader/proto/README b/metricsd/uploader/proto/README
index 9bd3249b0..4292a401a 100644
--- a/metricsd/uploader/proto/README
+++ b/metricsd/uploader/proto/README
@@ -1,6 +1,18 @@
1Copyright 2015 The Chromium OS Authors. All rights reserved. 1Copyright (C) 2015 The Android Open Source Project
2Use of this source code is governed by a BSD-style license that can be 2
3found in the LICENSE file. 3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
4 16
5 17
6This directory contains the protocol buffers used by the standalone metrics 18This directory contains the protocol buffers used by the standalone metrics
diff --git a/metricsd/uploader/proto/chrome_user_metrics_extension.proto b/metricsd/uploader/proto/chrome_user_metrics_extension.proto
index d4d4f240b..a07830f9b 100644
--- a/metricsd/uploader/proto/chrome_user_metrics_extension.proto
+++ b/metricsd/uploader/proto/chrome_user_metrics_extension.proto
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4// 16//
5// Protocol buffer for Chrome UMA (User Metrics Analysis). 17// Protocol buffer for Chrome UMA (User Metrics Analysis).
6// 18//
diff --git a/metricsd/uploader/proto/histogram_event.proto b/metricsd/uploader/proto/histogram_event.proto
index 4b68094ff..382506375 100644
--- a/metricsd/uploader/proto/histogram_event.proto
+++ b/metricsd/uploader/proto/histogram_event.proto
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4// 16//
5// Histogram-collected metrics. 17// Histogram-collected metrics.
6 18
diff --git a/metricsd/uploader/proto/system_profile.proto b/metricsd/uploader/proto/system_profile.proto
index d33ff6097..4cab0d973 100644
--- a/metricsd/uploader/proto/system_profile.proto
+++ b/metricsd/uploader/proto/system_profile.proto
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4// 16//
5// Stores information about the user's brower and system configuration. 17// Stores information about the user's brower and system configuration.
6// The system configuration fields are recorded once per client session. 18// The system configuration fields are recorded once per client session.
diff --git a/metricsd/uploader/proto/user_action_event.proto b/metricsd/uploader/proto/user_action_event.proto
index 30a93180d..464f3c82d 100644
--- a/metricsd/uploader/proto/user_action_event.proto
+++ b/metricsd/uploader/proto/user_action_event.proto
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4// 16//
5// Stores information about an event that occurs in response to a user action, 17// Stores information about an event that occurs in response to a user action,
6// e.g. an interaction with a browser UI element. 18// e.g. an interaction with a browser UI element.
diff --git a/metricsd/uploader/sender.h b/metricsd/uploader/sender.h
index 521183407..369c9c22e 100644
--- a/metricsd/uploader/sender.h
+++ b/metricsd/uploader/sender.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_SENDER_H_ 17#ifndef METRICS_UPLOADER_SENDER_H_
6#define METRICS_UPLOADER_SENDER_H_ 18#define METRICS_UPLOADER_SENDER_H_
diff --git a/metricsd/uploader/sender_http.cc b/metricsd/uploader/sender_http.cc
index a740310e8..953afc19b 100644
--- a/metricsd/uploader/sender_http.cc
+++ b/metricsd/uploader/sender_http.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/sender_http.h" 17#include "uploader/sender_http.h"
6 18
diff --git a/metricsd/uploader/sender_http.h b/metricsd/uploader/sender_http.h
index 380cad867..6249d9066 100644
--- a/metricsd/uploader/sender_http.h
+++ b/metricsd/uploader/sender_http.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_SENDER_HTTP_H_ 17#ifndef METRICS_UPLOADER_SENDER_HTTP_H_
6#define METRICS_UPLOADER_SENDER_HTTP_H_ 18#define METRICS_UPLOADER_SENDER_HTTP_H_
diff --git a/metricsd/uploader/system_profile_cache.cc b/metricsd/uploader/system_profile_cache.cc
index adbe0ae0a..35910d7dd 100644
--- a/metricsd/uploader/system_profile_cache.cc
+++ b/metricsd/uploader/system_profile_cache.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/system_profile_cache.h" 17#include "uploader/system_profile_cache.h"
6 18
diff --git a/metricsd/uploader/system_profile_cache.h b/metricsd/uploader/system_profile_cache.h
index b6ff3377c..c53a18ec7 100644
--- a/metricsd/uploader/system_profile_cache.h
+++ b/metricsd/uploader/system_profile_cache.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_SYSTEM_PROFILE_CACHE_H_ 17#ifndef METRICS_UPLOADER_SYSTEM_PROFILE_CACHE_H_
6#define METRICS_UPLOADER_SYSTEM_PROFILE_CACHE_H_ 18#define METRICS_UPLOADER_SYSTEM_PROFILE_CACHE_H_
diff --git a/metricsd/uploader/system_profile_setter.h b/metricsd/uploader/system_profile_setter.h
index c535664a0..cd311a45f 100644
--- a/metricsd/uploader/system_profile_setter.h
+++ b/metricsd/uploader/system_profile_setter.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_SYSTEM_PROFILE_SETTER_H_ 17#ifndef METRICS_UPLOADER_SYSTEM_PROFILE_SETTER_H_
6#define METRICS_UPLOADER_SYSTEM_PROFILE_SETTER_H_ 18#define METRICS_UPLOADER_SYSTEM_PROFILE_SETTER_H_
diff --git a/metricsd/uploader/upload_service.cc b/metricsd/uploader/upload_service.cc
index 34110045a..63b5789fe 100644
--- a/metricsd/uploader/upload_service.cc
+++ b/metricsd/uploader/upload_service.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include "uploader/upload_service.h" 17#include "uploader/upload_service.h"
6 18
diff --git a/metricsd/uploader/upload_service.h b/metricsd/uploader/upload_service.h
index c08fc1ac8..7f2f413a0 100644
--- a/metricsd/uploader/upload_service.h
+++ b/metricsd/uploader/upload_service.h
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#ifndef METRICS_UPLOADER_UPLOAD_SERVICE_H_ 17#ifndef METRICS_UPLOADER_UPLOAD_SERVICE_H_
6#define METRICS_UPLOADER_UPLOAD_SERVICE_H_ 18#define METRICS_UPLOADER_UPLOAD_SERVICE_H_
diff --git a/metricsd/uploader/upload_service_test.cc b/metricsd/uploader/upload_service_test.cc
index efd0a56fa..cbb5277d2 100644
--- a/metricsd/uploader/upload_service_test.cc
+++ b/metricsd/uploader/upload_service_test.cc
@@ -1,6 +1,18 @@
1// Copyright 2014 The Chromium OS Authors. All rights reserved. 1/*
2// Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2015 The Android Open Source Project
3// found in the LICENSE file. 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
4 16
5#include <gtest/gtest.h> 17#include <gtest/gtest.h>
6 18