OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/gcm_driver/crypto/gcm_key_store.h" | 5 #include "components/gcm_driver/crypto/gcm_key_store.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/test/histogram_tester.h" | 15 #include "base/test/histogram_tester.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "components/gcm_driver/crypto/p256_key_util.h" | 17 #include "components/gcm_driver/crypto/p256_key_util.h" |
18 #include "net/test/gtest_util.h" | 18 #include "net/test/gtest_util.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace gcm { | 21 namespace gcm { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const char kFakeAppId[] = "my_app_id"; | 25 const char kFakeAppId[] = "my_app_id"; |
26 const char kSecondFakeAppId[] = "my_other_app_id"; | 26 const char kSecondFakeAppId[] = "my_other_app_id"; |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 }, | 571 }, |
572 "Instance ID tokens cannot share an app_id with a non-InstanceID GCM " | 572 "Instance ID tokens cannot share an app_id with a non-InstanceID GCM " |
573 "registration"); | 573 "registration"); |
574 } | 574 } |
575 | 575 |
576 #endif // !defined(NDEBUG) && DCHECK_IS_ON() | 576 #endif // !defined(NDEBUG) && DCHECK_IS_ON() |
577 | 577 |
578 } // namespace | 578 } // namespace |
579 | 579 |
580 } // namespace gcm | 580 } // namespace gcm |
OLD | NEW |