| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/time/time.h" | 5 #include "base/time/time.h" |
| 6 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" | 6 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" |
| 7 #include "chrome/browser/extensions/activity_log/uma_policy.h" | 7 #include "chrome/browser/extensions/activity_log/uma_policy.h" |
| 8 #include "chrome/common/extensions/dom_action_types.h" | |
| 9 #include "chrome/test/base/testing_profile.h" | 8 #include "chrome/test/base/testing_profile.h" |
| 9 #include "extensions/common/dom_action_types.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class UmaPolicyTest : public testing::Test { | 14 class UmaPolicyTest : public testing::Test { |
| 15 public: | 15 public: |
| 16 UmaPolicyTest() { | 16 UmaPolicyTest() { |
| 17 profile_.reset(new TestingProfile()); | 17 profile_.reset(new TestingProfile()); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 UmaPolicy::CleanURL(GURL("http://www.cnn.com"))); | 216 UmaPolicy::CleanURL(GURL("http://www.cnn.com"))); |
| 217 ASSERT_EQ("http://www.cnn.com/", | 217 ASSERT_EQ("http://www.cnn.com/", |
| 218 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#a"))); | 218 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#a"))); |
| 219 ASSERT_EQ("http://www.cnn.com/", | 219 ASSERT_EQ("http://www.cnn.com/", |
| 220 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#aaaa"))); | 220 UmaPolicy::CleanURL(GURL("http://www.cnn.com/#aaaa"))); |
| 221 ASSERT_EQ("http://www.cnn.com/?q=a", | 221 ASSERT_EQ("http://www.cnn.com/?q=a", |
| 222 UmaPolicy::CleanURL(GURL("http://www.cnn.com/?q=a"))); | 222 UmaPolicy::CleanURL(GURL("http://www.cnn.com/?q=a"))); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace extensions | 225 } // namespace extensions |
| OLD | NEW |