OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/win/registry.h" | 7 #include "base/win/registry.h" |
8 #include "chrome/browser/browser_process.h" | |
9 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
11 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
12 #include "chrome/browser/extensions/extension_rlz_module.h" | 11 #include "chrome/browser/extensions/extension_rlz_module.h" |
13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
15 #include "rlz/win/lib/rlz_lib.h" | 14 #include "rlz/win/lib/rlz_lib.h" |
16 | 15 |
17 class MockRlzSendFinancialPingFunction : public RlzSendFinancialPingFunction { | 16 class MockRlzSendFinancialPingFunction : public RlzSendFinancialPingFunction { |
18 virtual bool RunImpl(); | 17 virtual bool RunImpl(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ASSERT_TRUE(key.ReadValueDW(L"D4I", &value)); | 90 ASSERT_TRUE(key.ReadValueDW(L"D4I", &value)); |
92 ASSERT_EQ(1, value); | 91 ASSERT_EQ(1, value); |
93 | 92 |
94 key.Open(HKEY_CURRENT_USER, L"Software\\Google\\Common\\Rlz\\Events\\D", | 93 key.Open(HKEY_CURRENT_USER, L"Software\\Google\\Common\\Rlz\\Events\\D", |
95 KEY_READ); | 94 KEY_READ); |
96 ASSERT_FALSE(key.Valid()); | 95 ASSERT_FALSE(key.Valid()); |
97 | 96 |
98 // Cleanup. | 97 // Cleanup. |
99 rlz_lib::ClearProductState(rlz_lib::PINYIN_IME, access_points); | 98 rlz_lib::ClearProductState(rlz_lib::PINYIN_IME, access_points); |
100 } | 99 } |
OLD | NEW |